@Test
void shouldAddSslHandlerWithHandshakeTimeout() throws Exception
{

    int timeoutMillis = 424242;
    SecurityPlan security = trustAllCertificates();
    NettyChannelInitializer initializer = newInitializer( security, timeoutMillis );
    initializer.initChannel( channel );
    SslHandler sslHandler = channel.pipeline().get( SslHandler.class );
    assertNotNull( sslHandler );
    assertEquals( timeoutMillis, sslHandler.getHandshakeTimeoutMillis() );
}