Tasty Test Tip: Matching generic typed classes in Mockito
Say you have a arbitrary class under test, which is dependent on a class DataProcessor which has a method with the following signature:
String processData(String data, MultivaluedMap params, Token token)