@Test
@SuppressWarnings("unchecked")
public void should_find_by_example_with_start_and_max() throws Exception
{
// given
Simple simple = createSimple("testFindByExample1", Integer.valueOf(10));
createSimple("testFindByExample1", Integer.valueOf(10));
// when
List<Simple> find = repo.findBy(simple, 0, 1, Simple_.name, Simple_.counter);
// then
assertNotNull(find);
assertFalse(find.isEmpty());
assertEquals(1, find.size());
assertEquals(simple.getName(), find.get(0).getName());
}