@Override
    protected final SslHandler newHandler(ByteBufAllocator alloc, boolean startTls) {
        SslHandler handler = ctx.newHandler(alloc, startTls);
        initHandler(handler);
        return handler;
    }
@Test
    public void testInitEngineOnNewSslHandler() throws Exception {
        SslContext delegating = newDelegatingSslContext();

        SslHandler handler = delegating.newHandler(UnpooledByteBufAllocator.DEFAULT);
        assertArrayEquals(EXPECTED_PROTOCOLS, handler.engine().getEnabledProtocols());

        handler = delegating.newHandler(UnpooledByteBufAllocator.DEFAULT, "localhost", 9090);
        assertArrayEquals(EXPECTED_PROTOCOLS, handler.engine().getEnabledProtocols());
    }