Http implements Client { @Override public Response send(Request request) { org.eclipse.jetty.client.api.Request httpRequest = buildHttpRequest(request); ContentResponse contentResponse; try { contentResponse = httpRequest.send(); } catch (Exception e) { throw new AssertionError(e.getMessage()); } Response response = new ResponseBuilder(contentResponse).build(); return response; }  @Override void start(); @Override void stop(); @Override Response send(Request request); org.eclipse.jetty.client.api.Request buildHttpRequest(Request request); static final String CREATE_IN_HTTP; static final String RETRIEVE_IN_HTTP; static final String UPDATE_IN_HTTP; static final String DELETE_IN_HTTP; static final String NOTIFY_IN_HTTP; public HttpClient httpClient; }
@Test public void http_send_function() { final Request iotdmExchange = new Request(); context.checking(new Expectations() { { oneOf(client).send(iotdmExchange); } }); client.send(iotdmExchange); }