@Test
public void verifyClosedSessionAreNotKept() throws Exception {

    //make all devices connected,
    m_cm.auditConnections();
    //make the second device connection go bad
    when(m_sessions.get(getIp("2")).isOpen()).thenReturn(false);
    m_cm.auditConnections();
    verify(m_connectionListener).deviceConnected(m_devices.get(0), m_sessions.get(getIp("1")));
    verify(m_connectionListener).deviceConnected(m_devices.get(1), m_sessions.get(getIp("2")));
    verify(m_connectionListener).deviceConnected(m_devices.get(2), m_sessions.get(getIp("3")));
    verify(m_dispatcher, times(4)).createClient(anyObject());
}