@Test
void shouldSetTerminationReasonOnChannelWhenTerminated()
{

    EmbeddedChannel channel = newChannel();
    NetworkConnection connection = newConnection( channel );
    String reason = "Something really bad has happened";
    connection.terminateAndRelease( reason );
    assertEquals( reason, terminationReason( channel ) );
}