Coap implements Client { @Override public Response send(Request request) { org.eclipse.californium.core.coap.Request coapRequest = new CoapRequestBuilder(request).build(); coapRequest.send(); return getOnem2mResponse(coapRequest, request); }  @Override void start(); @Override void stop(); Response getOnem2mResponse(org.eclipse.californium.core.coap.Request coapRequest,
                                      Request onem2mRequest); @Override Response send(Request request);  }
@Test public void coap_send_function() { final Request request = new Request(); context.checking(new Expectations() { { oneOf(client).send(request); } }); client.send(request); }