protected void addPassportHandler(ChannelPipeline pipeline) {
        pipeline.addLast(new ServerStateHandler.InboundHandler(registry, "http-" + metricId));
        pipeline.addLast(new ServerStateHandler.OutboundHandler(registry));
    }
@Test
    void serverStateHandlerAdded() {
        ChannelConfig channelConfig = new ChannelConfig();
        ChannelConfig channelDependencies = new ChannelConfig();
        channelDependencies.set(ZuulDependencyKeys.registry, new NoopRegistry());
        channelDependencies.set(
                ZuulDependencyKeys.rateLimitingChannelHandlerProvider, new NullChannelHandlerProvider());
        channelDependencies.set(
                ZuulDependencyKeys.sslClientCertCheckChannelHandlerProvider, new NullChannelHandlerProvider());

        ChannelGroup channelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
        BaseZuulChannelInitializer init =
                new BaseZuulChannelInitializer("1234", channelConfig, channelDependencies, channelGroup) {

                    @Override
                    protected void initChannel(Channel ch) {}
                };
        EmbeddedChannel channel = new EmbeddedChannel();

        init.addPassportHandler(channel.pipeline());

        assertNotNull(channel.pipeline().context(ServerStateHandler.InboundHandler.class));
        assertNotNull(channel.pipeline().context(ServerStateHandler.OutboundHandler.class));
    }