### Question:
AbstractCDSProcessingBBUtils { public void sendRequestToCDSClient(DelegateExecution execution) { logger.trace("Start AbstractCDSProcessingBBUtils.sendRequestToCDSClient for DelegateExecution object."); try { ExecutionServiceInput executionServiceInput = (ExecutionServiceInput) execution.getVariable(EXEC_INPUT); CDSResponse cdsResponse = getCdsResponse(executionServiceInput); execution.setVariable(CDS_STATUS, cdsResponse.status); if (cdsResponse.payload != null) { String payload = JsonFormat.printer().print(cdsResponse.payload); execution.setVariable(RESPONSE_PAYLOAD, payload); } } catch (Exception ex) { exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex); } }  void constructExecutionServiceInputObject(DelegateExecution execution); void constructExecutionServiceInputObject(BuildingBlockExecution execution); void sendRequestToCDSClient(DelegateExecution execution); void sendRequestToCDSClient(BuildingBlockExecution execution);  }### Answer:
@Test public void sendRequestToCDSClientDETest() { DelegateExecution execution = mock(DelegateExecution.class); when(execution.getVariable("executionServiceInput")).thenReturn(abstractCDSPropertiesBean); abstractCDSProcessingBBUtils.sendRequestToCDSClient(execution); verify(exceptionUtil, times(1)).buildAndThrowWorkflowException(any(DelegateExecution.class), anyInt(), any(Exception.class)); }
@Test public void sendRequestToCDSClientBBTest() { BuildingBlockExecution execution = mock(BuildingBlockExecution.class); when(execution.getVariable("executionServiceInput")).thenReturn(abstractCDSPropertiesBean); abstractCDSProcessingBBUtils.sendRequestToCDSClient(execution); verify(exceptionUtil, times(1)).buildAndThrowWorkflowException(any(BuildingBlockExecution.class), anyInt(), any(Exception.class)); }