### Question:
ManualHandlingTasks { public void updateRequestDbStatus(BuildingBlockExecution execution, String status) { try { String requestId = (String) execution.getVariable(MSO_REQUEST_ID); InfraActiveRequests request = requestDbclient.getInfraActiveRequestbyRequestId(requestId); if (status.equalsIgnoreCase(Status.TIMEOUT.name())) { execution.setVariable(RESPONSE_VALUE_TASK, "Timeout"); } request.setRequestStatus(status); request.setLastModifiedBy("ManualHandling"); requestDbclient.updateInfraActiveRequests(request); } catch (Exception e) { logger.error("Unable to save the updated request status to the DB", e); } }  void initRainyDayManualHandling(BuildingBlockExecution execution); void setFalloutTaskVariables(DelegateTask task); void setPauseTaskVariables(DelegateTask task); void completeTask(DelegateTask task); void createExternalTicket(BuildingBlockExecution execution); void updateRequestDbStatus(BuildingBlockExecution execution, String status); static final String VNF_TYPE; static final String DESCRIPTION; static final String SERVICE_TYPE; static final String MSO_REQUEST_ID; static final String REQUESTOR_ID; static final String ERROR_CODE; static final String VALID_RESPONSES; static final String TASK_TIMEOUT; static final String RESPONSE_VALUE_TASK; static final String RESPONSE_VALUE; static final String TASK_VARIABLE_TYPE; static final String TASK_VARIABLE_NFROLE; static final String TASK_VARIABLE_SUBSCRIPTION_SERVICE_TYPE; static final String TASK_VARIABLE_ORIGINAL_REQUEST_ID; static final String TASK_VARIABLE_ORIGINAL_REQUESTOR_ID; static final String TASK_VARIABLE_ERROR_SOURCE; static final String TASK_VARIABLE_ERROR_CODE; static final String TASK_VARIABLE_ERROR_MESSAGE; static final String TASK_VARIABLE_BUILDING_BLOCK_NAME; static final String TASK_VARIABLE_BUILDING_BLOCK_STEP; static final String TASK_VARIABLE_DESCRIPTION; static final String TASK_VARIABLE_TIMEOUT; static final String TASK_VARIABLE_VALID_RESPONSES; static final String BPMN_EXCEPTION; static final String RAINY_DAY_SERVICE_TYPE; static final String RAINY_DAY_VNF_TYPE; static final String RAINY_DAY_VNF_NAME; static final String G_BUILDING_BLOCK_EXECUTION; static final String WORKFLOW_EXCEPTION; }### Answer:
@Test public void updateRequestDbStatus_Test() throws Exception { InfraActiveRequests mockedRequest = new InfraActiveRequests(); when(requestsDbClient.getInfraActiveRequestbyRequestId(any(String.class))).thenReturn(mockedRequest); doNothing().when(requestsDbClient).updateInfraActiveRequests(any(InfraActiveRequests.class)); manualHandlingTasks.updateRequestDbStatus(buildingBlockExecution, "IN_PROGRESS"); verify(requestsDbClient, times(1)).updateInfraActiveRequests(any(InfraActiveRequests.class)); assertEquals(mockedRequest.getRequestStatus(), "IN_PROGRESS"); }