@Test
void shouldBuildPipeline()
{

    EmbeddedChannel channel = new EmbeddedChannel();
    ChannelAttributes.setMessageDispatcher( channel, new InboundMessageDispatcher( channel, DEV_NULL_LOGGING ) );
    new ChannelPipelineBuilderImpl().build( new MessageFormatV3(), channel.pipeline(), DEV_NULL_LOGGING );
    Iterator<Map.Entry<String,ChannelHandler>> iterator = channel.pipeline().iterator();
    assertThat( iterator.next().getValue(), instanceOf( ChunkDecoder.class ) );
    assertThat( iterator.next().getValue(), instanceOf( MessageDecoder.class ) );
    assertThat( iterator.next().getValue(), instanceOf( InboundMessageHandler.class ) );
    assertThat( iterator.next().getValue(), instanceOf( OutboundMessageHandler.class ) );
    assertThat( iterator.next().getValue(), instanceOf( ChannelErrorHandler.class ) );
    assertFalse( iterator.hasNext() );
}