### Question:
WorkflowActionBBTasks { protected String getConfigurationId(Vnfc vnfc) throws Exception { Configuration configuration = workflowAction.getRelatedResourcesInVnfc(vnfc, Configuration.class, Types.CONFIGURATION); if (configuration != null) { return configuration.getConfigurationId(); } else { return UUID.randomUUID().toString(); } }  void selectBB(DelegateExecution execution); void updateFlowStatistics(DelegateExecution execution); void sendSyncAck(DelegateExecution execution); void sendErrorSyncAck(DelegateExecution execution); void updateRequestStatusToComplete(DelegateExecution execution); void checkRetryStatus(DelegateExecution execution); void rollbackExecutionPath(DelegateExecution execution); void postProcessingExecuteBB(DelegateExecution execution);  }### Answer:
@Test public void getConfigurationId() throws Exception { org.onap.aai.domain.yang.Vnfc vnfc = new org.onap.aai.domain.yang.Vnfc(); vnfc.setModelInvariantId("modelInvariantId"); vnfc.setVnfcName("testVnfcName"); List<Configuration> configurations = new ArrayList<>(); org.onap.aai.domain.yang.Configuration configuration = new org.onap.aai.domain.yang.Configuration(); configuration.setConfigurationId("configurationId"); configuration.setModelCustomizationId("modelCustimizationId"); configuration.setConfigurationName("testConfigurationName"); configurations.add(configuration); doReturn(configurations.get(0).getConfigurationId()).when(workflowActionBBTasks).getConfigurationId(vnfc); assertEquals(workflowActionBBTasks.getConfigurationId(vnfc), "configurationId"); }