Collection<OnmsLocationMonitor> monitors2 = new HashSet<OnmsLocationMonitor>();
monitors2.add(m_locationMonitor2_1);
monitors2.add(m_locationMonitor2_2);
expect(m_locationMonitorDao.findByLocationDefinition(locationDefinitions.get(1))).andReturn(monitors2);
expect(m_locationMonitorDao.findByLocationDefinition(locationDefinitions.get(2))).andReturn(Collections.EMPTY_SET);
<BUG>expect(m_locationMonitorDao.getStatusChangesBetween(startDate, endDate)).andReturn(statusChanges);
replayEverything();</BUG>
SimpleWebTable table = m_service.createFacilityStatusTable(startDate,
endDate);
verifyEverything();

Collection<OnmsLocationMonitor> monitors2 = new HashSet<OnmsLocationMonitor>();
monitors2.add(m_locationMonitor2_1);
monitors2.add(m_locationMonitor2_2);
expect(m_locationMonitorDao.findByLocationDefinition(locationDefinitions.get(1))).andReturn(monitors2);
expect(m_locationMonitorDao.findByLocationDefinition(locationDefinitions.get(2))).andReturn(Collections.EMPTY_SET);
expect(m_locationMonitorDao.getStatusChangesBetween(startDate, endDate)).andReturn(statusChanges);
expect(m_locationMonitorDao.getAllStatusChangesAt(startDate)).andReturn(Collections.EMPTY_SET);
replayEverything();
SimpleWebTable table = m_service.createFacilityStatusTable(startDate,
endDate);
verifyEverything();
