@Test
public void testMockNotificationBasic() throws Exception {
MockNode node = m_network.getNode(1);
Date downDate = new Date();
long finishedDowns = anticipateNotificationsForGroup("node 1 down.", "All services are down on node 1.", "InitialGroup", downDate, 0);
m_eventMgr.sendEventToListeners(node.createDownEvent(downDate));
verifyAnticipated(finishedDowns, 3000);
m_anticipator.reset();
Date upDate = new Date();
anticipateNotificationsForGroup("RESOLVED: node 1 down.", "RESOLVED: All services are down on node 1.", "InitialGroup", upDate, 0);
long finishedUps = anticipateNotificationsForGroup("node 1 up.", "The node which was previously down is now up.", "UpGroup", upDate, 0);
m_eventMgr.sendEventToListeners(node.createUpEvent(upDate));
verifyAnticipated(finishedUps, 3000);
}