@Test
void shouldFlushInEventLoopThread() throws Exception
{

    EmbeddedChannel channel = spy( new EmbeddedChannel() );
    initializeEventLoop( channel, "Flush" );
    ChannelAttributes.setProtocolVersion( channel, DEFAULT_TEST_PROTOCOL_VERSION );
    NetworkConnection connection = newConnection( channel );
    connection.flush();
    shutdownEventLoop();
    verify( channel ).flush();
}