### Question:
DaoWebOutageRepository implements WebOutageRepository, InitializingBean { @Transactional public int countMatchingOutages(OutageCriteria criteria) { return m_outageDao.countMatching(getOnmsCriteria(criteria)); }  @Override void afterPropertiesSet(); @Transactional int countMatchingOutageSummaries(final OutageCriteria criteria); @Transactional int countMatchingOutages(OutageCriteria criteria); @Transactional OutageSummary[] getMatchingOutageSummaries(final OutageCriteria criteria); @Transactional Outage[] getMatchingOutages(final OutageCriteria criteria); @Transactional Outage getOutage(final int OutageId); @Transactional int countCurrentOutages(); @Transactional OutageSummary[] getCurrentOutages(final int rows);  }### Answer:
@Test @Transactional public void testCountMatchingOutages(){ int count = m_daoOutageRepo.countMatchingOutages(new OutageCriteria()); assertEquals(3, count); count = m_daoOutageRepo.countMatchingOutages(new OutageCriteria(new RegainedServiceDateBeforeFilter(new Date()))); assertEquals(1, count); }