I am trying to add tests using latest (5.7.0) Mockito and using Mockito.mockStatic(...) to mock class with static methods which works fine . However when I have class with stat