### Question:
ServiceInstanceRestHandler extends AbstractRestHandler { public void checkDuplicateRequest(String serviceInstanceId, String instanceName, String requestId) throws RequestConflictedException { HashMap<String, String> instanceIdMap = new HashMap<>(); instanceIdMap.put("serviceInstanceId", serviceInstanceId); checkDuplicateRequest(instanceIdMap, ModelType.service, instanceName, requestId); }  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_checkDuplicateRequest() throws MalformedURLException, NoRecipeException, RequestConflictedException { ArgumentCaptor<HashMap> instanceIdCaptor = ArgumentCaptor.forClass(HashMap.class); restHandler.checkDuplicateRequest("serviceInstanceId", "instanceName", "requestId"); Mockito.verify(infraActiveRequestsClient, Mockito.times(1)).checkInstanceNameDuplicate( instanceIdCaptor.capture(), eq("instanceName"), eq(ModelType.service.toString())); Map actualMap = instanceIdCaptor.getValue(); assertEquals("serviceInstanceId", actualMap.get("serviceInstanceId")); }