AuditDAOImpl extends AbstractJPADAO<Audit, Long> implements AuditDAO { @Override public List<Audit> findAll() { List<Audit> auditList = super.findAll(); return auditList; } AuditDAOImpl(); @Override List<Audit> findAll(); @Override List<Audit> findAll(AuditStatus status); @Override Audit findAuditWithTest(Long id); @Override List<Audit> findAllByTag(String tag);  }
@Test public void testFindAll_AuditStatus() { Collection<Audit> auditList = auditDAO.findAll(AuditStatus.COMPLETED); assertEquals(2, auditList.size()); auditList = auditDAO.findAll(AuditStatus.ANALYSIS); assertEquals(0, auditList.size()); }