Description
Test hooks represent suboptimal design at best and significant security, stability, and performance concerns in practice. These test hooks should be removed. Tests relying on them should, for instance, use Mockito spys to inject test code in the desired location. This will likely require nontrivial refactoring of the class in question.