### Question:
OKHttpFactory implements HttpFactory { @Override public CompletableFuture<String> get(RequestContext requestContext) { requestContext.setMethod(RequestMethod.GET); return invokeHttp(requestContext); } OKHttpFactory(); @Override CompletableFuture<String> get(RequestContext requestContext); @Override CompletableFuture<String> post(RequestContext requestContext); @Override CompletableFuture<String> put(RequestContext requestContext); @Override CompletableFuture<String> patch(RequestContext requestContext); @Override CompletableFuture<String> delete(RequestContext requestContext);  }### Answer:
@Test public void testGet() { RequestContext requestContext = new RequestContext(baseUrl + "demo/get"); CompletableFuture<String> result = HttpFactory.okHttpFactory.get(requestContext); result.whenComplete((r, e) -> { System.out.println("结果：" + r); if (e != null) { e.printStackTrace(); } }); }