@Override
    protected void initChannel(Channel ch) throws Exception {
        final ChannelPipeline pipeline = ch.pipeline();
        pipeline.addLast(new HttpServerCodec());
        pipeline.addLast(new HttpObjectAggregator(65536));
        addPushMessageHandlers(pipeline);
    }
@Test
    void testInitChannel() throws Exception {
        initializer.initChannel(channel);

        assertNotNull(channel.pipeline().context(HttpServerCodec.class));
        assertNotNull(channel.pipeline().context(HttpObjectAggregator.class));
        assertNotNull(channel.pipeline().get("mockHandler"));
    }