private final HttpsCertificate DEFAULT_CERTIFICATE = certificate(pathResource("cert.jks"), "mocohttps", "mocohttps");
@Test
public void should_merge_https_server() throws Exception {
anotherServer = httpsServer(12306, DEFAULT_CERTIFICATE, context("/bar"));
HttpServer mergedServer = ((ActualHttpServer) anotherServer).mergeHttpServer((ActualHttpServer) httpServer);
running(mergedServer, new Runnable() {
@Override
public void run() throws Exception {
assertThat(helper.get(remoteHttpsUrl("/foo/anything")), is("foo"));
}