expect(m_nodeDao.get(n1.getId())).andReturn(n1).times(2); // TODO ResponseTimeResourceType is called as many time as resources the node has.
expect(m_locationMonitorDao.findStatusChangesForNodeForUniqueMonitorAndInterface(n1.getId())).andReturn(new ArrayList<LocationMonitorIpInterface>(0));
expect(m_nodeDao.findAll()).andReturn(nodes);
File snmpDir = m_fileAnticipator.tempDir("snmp");
File nodeDir = m_fileAnticipator.tempDir(snmpDir, n1.getId().toString());
<BUG>m_fileAnticipator.tempFile(nodeDir, "foo" + RrdUtils.getExtension());
File responseDir = m_fileAnticipator.tempDir("response");
File ipDir = m_fileAnticipator.tempDir(responseDir, ip1.getIpAddress().getHostAddress());
</BUG>
m_fileAnticipator.tempFile(ipDir, "foo" + RrdUtils.getExtension());

expect(m_nodeDao.get(n1.getId())).andReturn(n1).times(2); // TODO ResponseTimeResourceType is called as many time as resources the node has.
expect(m_locationMonitorDao.findStatusChangesForNodeForUniqueMonitorAndInterface(n1.getId())).andReturn(new ArrayList<LocationMonitorIpInterface>(0));
expect(m_nodeDao.findAll()).andReturn(nodes);
File snmpDir = m_fileAnticipator.tempDir("snmp");
File nodeDir = m_fileAnticipator.tempDir(snmpDir, n1.getId().toString());
m_fileAnticipator.tempFile(nodeDir, "foo" + RrdUtils.getExtension());
File orphanDir = m_fileAnticipator.tempDir(snmpDir, "100");
m_fileAnticipator.tempFile(orphanDir, "foo" + RrdUtils.getExtension());
File responseDir = m_fileAnticipator.tempDir("response");
File ipDir = m_fileAnticipator.tempDir(responseDir, n1.getIpInterfaces().iterator().next().getIpAddress().getHostAddress());
m_fileAnticipator.tempFile(ipDir, "foo" + RrdUtils.getExtension());
