@Test
public void testFindMaxResults() throws Exception {

    Date since = new Date();
    persistFlow("blah");
    persistFlow("blah");
    persistFlow("blah");
    testTransactionManager.commitTransaction();
    testTransactionManager.beginTransaction();
    List<Long> ids = flowRepository.findFlowIds(new FlowFinderCriteria(since, null, "test"));
    assertEquals(3, ids.size());
    ids = flowRepository.findFlowIds(new FlowFinderCriteria(since, null, "test", 2));
    assertEquals(2, ids.size());
}