@Test
public void testInitEngineOnNewSslHandler() throws Exception {

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