227228229230231232233234235236237
q.fetchOne(); fail(); } catch (InvalidResultException expected) {} Record record = q.fetchAny(); assertEquals("Coelho", record.getValue(TAuthor_LAST_NAME())); } @Test public void testFetchMany() throws Exception {