public void testImpossibleRangeReturnsEmptyList() {
OpenJPAEntityManager em =
(OpenJPAEntityManager) currentEntityManager();
startTx(em);
String query = "SELECT r FROM RuntimeTest1 r";
OpenJPAQuery q = em.createQuery(query);
q.setFirstResult(2);
q.setMaxResults(0);
List results = q.getResultList();
assertEquals(0, results.size());
assertFalse(results.iterator().hasNext());
q.closeAll();
endTx(em);
endEm(em);
}