@Test
public void testFindAll() {

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