### Question:
NettyHttpServerEngine implements ServerEngine { public void setTlsServerParameters(TLSServerParameters params) { tlsServerParameters = params; if (tlsServerParameters != null) { protocol = "https"; } else { protocol = "http"; } } NettyHttpServerEngine();  NettyHttpServerEngine(
            String host,
            int port); @PostConstruct void finalizeConfig(); void setTlsServerParameters(TLSServerParameters params); TLSServerParameters getTlsServerParameters(); void setThreadingParameters(ThreadingParameters params); ThreadingParameters getThreadingParameters(); @Override void addServant(URL url, NettyHttpHandler handler); @Override void removeServant(URL url); @Override NettyHttpHandler getServant(URL url); void shutdown(); int getReadIdleTime(); void setReadIdleTime(int readIdleTime); int getWriteIdleTime(); void setWriteIdleTime(int writeIdleTime); boolean isSessionSupport(); void setSessionSupport(boolean session); int getMaxChunkContentSize(); void setMaxChunkContentSize(int maxChunkContentSize); int getPort(); void setPort(int port); void setHost(String host); String getHost(); String getProtocol(); void setProtocol(String protocol); void setBossGroup(EventLoopGroup bossGroup); EventLoopGroup getBossGroup(); void setWorkerGroup(EventLoopGroup workerGroup); EventLoopGroup getWorkerGroup(); EventExecutorGroup getApplicationExecutor(); void setApplicationExecutor(EventExecutorGroup applicationExecutor);  }### Answer:
@Test public void testHttps() throws Exception { Map<String, TLSServerParameters> tlsParamsMap = new HashMap<>(); tlsParamsMap.put(Integer.toString(PORT2), new TLSServerParameters()); factory.setTlsServerParameters(tlsParamsMap); factory.createNettyHttpServerEngine(PORT2, "https"); NettyHttpServerEngineFactory.destroyForPort(PORT2); }