We are currently facing an issue testing ByteBuddy generated code in a SpringBoot environment using Mockito as testing framework.
The problem can be described as follows.