@Test
void shouldAddSslHandlerWhenRequiresEncryption() throws Exception
{

    SecurityPlan security = trustAllCertificates();
    NettyChannelInitializer initializer = newInitializer( security );
    initializer.initChannel( channel );
    assertNotNull( channel.pipeline().get( SslHandler.class ) );
}