I have the following code on my Android application:
public Observable<Person> execute(MyObject myObject) {
return service.execute(new MyApiRequest(myObject));
}
What I want to test, using Mockito is that the same instance of MyObject is passed to MyApiRequest constructor. Let's say we don't know how MyApiRequest looks. I only want to test that there "myObject" param from execute() method is the same as MyApiRequest recieves.