@Test
public void testSessionClosedIsRemovedFromServerConnector() throws Exception
{
Session session = startClient(startServer(null), null);
session.goAway(new GoAwayInfo(5, TimeUnit.SECONDS));
// Sleep a while to allow the connector to remove the session
// since it is done asynchronously by the selector thread
TimeUnit.SECONDS.sleep(1);