@Test
void shouldCloseChannelWhenTerminated()
{

    EmbeddedChannel channel = newChannel();
    NetworkConnection connection = newConnection( channel );
    assertTrue( channel.isActive() );
    connection.terminateAndRelease( "test" );
    assertFalse( channel.isActive() );
}