I know the regular function of Mockito.verify(), but I am wondering how to make it as an if condition like this:
if(verify(mocked, times(1)).method()){
//Do something when the method was called for the first time
}else if(verify(mocked, times(2)).method()){
//DO something else when the method was caled for the second time
};