### Question:
BPRestCallback { public boolean send(String workflowMessageUrl, String messageType, String correlator, String message) { logger.debug(getClass().getSimpleName() + ".send(" + "workflowMessageUrl=" + workflowMessageUrl + " messageType=" + messageType + " correlator=" + correlator + " message=" + message + ")"); while (workflowMessageUrl.endsWith("/")) { workflowMessageUrl = workflowMessageUrl.substring(0, workflowMessageUrl.length() - 1); } String endpoint = workflowMessageUrl + "/" + SDNCAdapterUtils.encodeURLPathSegment(messageType) + "/" + SDNCAdapterUtils.encodeURLPathSegment(correlator); return send(endpoint, message); }  boolean send(String workflowMessageUrl, String messageType, String correlator, String message); boolean send(String url, String message);  }### Answer:
@Test public void sendTest() { String response = "<errors xmlns=\"urn:ietf:params:xml:ns:yang:ietf-restconf\">\n" + "\t\t + "\t\t + "\t\t + "\t\t + "\t\t wireMockServer.stubFor( post(urlPathEqualTo("/sdnc")).willReturn(aResponse().withHeader("Content-Type", "application/xml") .withBody(response).withStatus(HttpStatus.SC_MULTIPLE_CHOICES))); boolean responseCommon = bpRestCallback.send("http: assertNotNull(responseCommon); assertEquals(true, responseCommon); }