Java 通过https运行的Mockserver没有响应

Java 通过https运行的Mockserver没有响应,java,apache,testing,https,mocking,Java,Apache,Testing,Https,Mocking,我的mockserver在端口8443上的apache https连接器上运行。但是,当我尝试使用以下命令加载期望值时,它什么也不做。然而,当我使用http连接器时,它就像一个符咒 new MockServerClient(ip, Integer.parseInt(port), contextPath) .when(request, times, timeToLive) .respond(response); 根据

我的mockserver在端口8443上的apache https连接器上运行。但是,当我尝试使用以下命令加载期望值时,它什么也不做。然而,当我使用http连接器时,它就像一个符咒

new MockServerClient(ip, Integer.parseInt(port), contextPath)
                    .when(request, times, timeToLive)
                    .respond(response);
根据我的理解,它将使用http连接器,所以我也尝试了

MockServerClient client = new MockServerClient(ip, Integer.parseInt(port), contextPath);
HttpForward httpForward = new HttpForward()
                            .withHost(ip)
                            .withPort(Integer.parseInt(port))
                            .withScheme(HttpForward.Scheme.HTTPS);

// when
ForwardChainExpectation forwardChainExpectation = client.when(request);
forwardChainExpectation.forward(httpForward);
我错过了什么?
模拟服务器可以通过https连接器工作吗?

我正在使用apache中的模拟服务器war。您正在使用该库吗?对我正在使用这个jar,客户端的jar是mockserver-netty-3.10。