private EmbeddedChannel createChannelSsl(ServerMetrics metrics) {
    SSLEngine sslEngine = SSL_CONTEXT.newEngine(ByteBufAllocator.DEFAULT);
    SSLEngine mockSSLEngine =
        new MockSSLEngine(sslEngine, new MockSSLSession(sslEngine.getSession(), new Certificate[]{PEER_CERT}));
    SslHandler sslHandler = new SslHandler(mockSSLEngine);
    ServerSecurityHandler serverSecurityHandler = new ServerSecurityHandler(serverSecurityService, metrics);
    EmbeddedChannel channel = new EmbeddedChannel(sslHandler, serverSecurityHandler);
    return channel;
  }
Creates an {@link EmbeddedChannel} that incorporates an instance of {@link ServerSecurityHandler}
@return an {@link EmbeddedChannel} that incorporates an instance of {@link ServerSecurityHandler}
        and an {@link SslHandler}.
ambry-rest/src/test/java/com/github/ambry/rest/ServerSecurityHandlerTest.java