### Question:
ServiceInstanceRestHandler extends AbstractRestHandler { public RequestClientParameter buildRequestParams(ServiceInstancesRequest request, String requestURI, String requestId, String serviceInstanceId) throws JsonProcessingException { ObjectMapper mapper = new ObjectMapper(); return new RequestClientParameter.Builder().setRequestId(requestId).setServiceInstanceId(serviceInstanceId) .setALaCarte(true).setRequestDetails(mapper.writeValueAsString(request)) .setRequestAction(Action.deleteInstance.toString()).setRequestUri(requestURI).setApiVersion("v8") .build(); }  InfraActiveRequests mapInfraActiveRequestForDelete(String requestId, String serviceInstanceId,
            String requestorId, String source, String requestURL); InfraActiveRequests createInfraActiveRequestForDelete(String requestId, String serviceInstanceId,
            String requestorId, String source, String requestURL); RequestClientParameter buildRequestParams(ServiceInstancesRequest request, String requestURI,
            String requestId, String serviceInstanceId); void saveInstanceName(ServiceInstancesRequest request, InfraActiveRequests currentRequest); void checkDuplicateRequest(String serviceInstanceId, String instanceName, String requestId); Recipe findServiceRecipe(String modelUUID, String action);  }### Answer:
@Test public void test_buildRequestParams() throws Exception { RequestClientParameter expected = new RequestClientParameter.Builder().setRequestId("requestId").setServiceInstanceId("serviceInstanceId") .setALaCarte(true).setRequestDetails(mapper.writeValueAsString(createTestRequest())) .setRequestAction(Action.deleteInstance.toString()) .setRequestUri("http: RequestClientParameter actual = restHandler.buildRequestParams(createTestRequest(), "http: assertThat(actual, sameBeanAs(expected)); }