@Test
public void testHandshakeDisconnected() {

    // Seed with 1 connection and handler
    testNewConnectionOpened();
    assertTrue(switchManager.getSwitchHandshakeHandlers().size() == 1);
    // Disconnect wrong handshake
    switchManager.handshakeDisconnected(DATAPATH_ID_0);
    assertTrue(switchManager.getSwitchHandshakeHandlers().size() == 1);
    // Disconnect correct handshake
    switchManager.handshakeDisconnected(DATAPATH_ID_1);
    assertTrue(switchManager.getSwitchHandshakeHandlers().size() == 0);
}