@Test
public void testFindMatchingClass() {

    QueryResults findMatchingResult = mock(QueryResults.class);
    QueryByCriteria query = QueryByCriteria.Builder.create().build();
    when(mockProvider.findMatching(any(Class.class), any(QueryByCriteria.class))).thenReturn(findMatchingResult);
    assertSame(findMatchingResult, service.findMatching(Object.class, query));
    verify(mockProvider).findMatching(any(Class.class), eq(query));
}