### Question:
ServiceInstanceRestHandler extends AbstractRestHandler { public void saveInstanceName(ServiceInstancesRequest request, InfraActiveRequests currentRequest) { try { currentRequest.setServiceInstanceName(request.getRequestDetails().getRequestInfo().getInstanceName()); infraActiveRequestsClient.updateInfraActiveRequests(currentRequest); } catch (Exception e) { logger.warn("Could not update instance name", e); } }  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_saveInstanceName() throws MalformedURLException, NoRecipeException { ServiceInstancesRequest request = createTestRequest(); InfraActiveRequests dbRequest = createDatabaseRecord(); restHandler.saveInstanceName(request, dbRequest); Mockito.verify(infraActiveRequestsClient, Mockito.times(1)).updateInfraActiveRequests(dbRequest); assertEquals("InstanceName Should Be Equal", "instanceName", dbRequest.getServiceInstanceName()); }