assertTrue("Protocol must be http",
"http".equals(engine.getProtocol()));
engine = new JettyHTTPServerEngine();
engine.setPort(9235);
engine.setTlsServerParameters(new TLSServerParameters());
engine.finalizeConfig();
List<JettyHTTPServerEngine> list = new ArrayList<JettyHTTPServerEngine>();
list.add(engine);
factory.setEnginesList(list);
engine = factory.createJettyHTTPServerEngine(9235, "https");
assertTrue("Protocol must be https",
"https".equals(engine.getProtocol()));
factory.setTLSServerParametersForPort(9234, new TLSServerParameters());
engine = factory.createJettyHTTPServerEngine(9234, "https");
assertTrue("Protocol must be https",
"https".equals(engine.getProtocol()));
factory.setTLSServerParametersForPort(9236, new TLSServerParameters());
engine = factory.createJettyHTTPServerEngine(9236, "https");
assertTrue("Protocol must be https",
"https".equals(engine.getProtocol()));
factory.destroyForPort(9234);