To accept any object as parameter:
mock.send(anyObject());
(You may need to cast the expression to the desired type.)
In addition, to accept any object of a specific type, use:
mock.send(isA(SomeObject.class));
To accept any object as parameter:
mock.send(anyObject());
(You may need to cast the expression to the desired type.)
In addition, to accept any object of a specific type, use:
mock.send(isA(SomeObject.class));