With Mockito I can do the following:
verify(someService).process(any(Person.class));
But how do I write this if process takes
You can't express this because of type erasure. Even if you could express it in code, Mockito had no chance to check it at runtime. You could create an interface like
interface PersonCollection extends Collection { /* nothing */ }
instead and use this throughout your code.
Edit: I was wrong, Mockito has anyCollectionOf(..) which is what you want.