    @Test(timeout = 60000)
    public void testAddLast() throws Exception {

        pipelineRule.pipeline.addLast(HANDLER_1.getNameIfConfigured(), HANDLER_1.getHandlerFactoryIfConfigured());
        pipelineRule.pipeline.addLast(HANDLER_2.getNameIfConfigured(), HANDLER_2.getHandlerFactoryIfConfigured());

        assertThat("Unexpected handlers count.", pipelineRule.pipeline.getHoldersInOrder(), hasSize(2));
        assertThat("Unexpected handlers.", pipelineRule.pipeline.getHoldersInOrder(),
                   contains(HANDLER_1, HANDLER_2));
    }