I am writing a test case using Mockito, and have to write expectation for a method (signature shown below)
public Object process(Employee e);
In my test class, I have to simulate my expectations as follows:
when(someClass.process("any Employee with id between 1 and 100.").thenReturn(object1);
when(someClass.process("any Employee with id between 101 and 200.").thenReturn(object2);
How can I set expectations conditionally.