@Test
public void testInitEngineOnNewEngine() throws Exception {

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