assertEquals(1, result.size());
assertEquals(e2, result.get(0));
}
public void testDuplicatesCreationDate() {
Submit e1 = createNewSubmit();
e1.setReportdate(previousMonth(4));
em.merge(e1);
Submit e2 = createDuplicate(e1);
List<Submit> result = runQuery(0, 10, previousMonth(5), new Date(), true);
assertNotNull(result);
assertEquals(2, result.size());