I usually try to follow the advice of the book Working Effectively with Legacy Code. I break dependencies, move parts of the code to @VisibleForTesting public static methods and to new classes to make ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results