I want to mock private method of a class under test but method return false first two times when the method is called after that it should return false. Here is the code wha
This works for me:-
new MockUp() { @Mock boolean methodToMock(int value) { return true; } };