The easiest way to solve your problem is to create a new test class and post your tests there.
You can also wrap this static class with a regular class, hidden behind the interface in your code, and stub this interface in your tests.
The last thing you can try is to mute every method of your static class in the @SetUp method using:
.
Mockito.when (StaticClass.method (pairs)) thenCallRealMethod ();
and get the specific method in your test using: Mockito.when (Static.methodYouAreInterested (pairs)) thenReturn (value) ;.
source share