### Question:
AAIConfigurationResources { public void createConfiguration(Configuration configuration) { AAIResourceUri configurationURI = AAIUriFactory .createResourceUri(AAIFluentTypeBuilder.network().configuration(configuration.getConfigurationId())); configuration.setOrchestrationStatus(OrchestrationStatus.INVENTORIED); org.onap.aai.domain.yang.Configuration aaiConfiguration = aaiObjectMapper.mapConfiguration(configuration); injectionHelper.getAaiClient().createIfNotExists(configurationURI, Optional.of(aaiConfiguration)); }  void createConfiguration(Configuration configuration); Optional<org.onap.aai.domain.yang.Configuration> getConfiguration(String configurationId); void updateConfiguration(Configuration configuration); void disconnectConfigurationToServiceInstance(String configurationId, String serviceInstanceId); void connectVrfConfigurationToVnrConfiguration(String vrfConfigurationId, String vnrConfigurationId); void connectConfigurationToPnfObject(String pnfId, String configurationId); void connectConfigurationToServiceInstance(String configurationId, String serviceInstanceId); void connectConfigurationToServiceInstance(String configurationId, String serviceInstanceId,
            AAIEdgeLabel aaiLabel); void connectConfigurationToGenericVnf(String configurationId, String genericVnfId); void connectConfigurationToVpnBinding(String configurationId, String vpnId); void connectConfigurationToVfModule(String configurationId, String vnfId, String vfModuleId); void connectConfigurationToVnfc(String configurationId, String vnfcName); void connectConfigurationToL3Network(String configurationId, String networkId); void deleteConfiguration(String configurationId); void deleteConfiguration(Configuration configuration); Optional<org.onap.aai.domain.yang.Configuration> getConfigurationFromRelatedLink(String relatedLink); void updateOrchestrationStatusConfiguration(Configuration configuration,
            OrchestrationStatus orchestrationStatus); void updateConfigurationOrchestrationStatus(Configuration configuration,
            OrchestrationStatus orchestrationStatus);  }### Answer:
@Test public void createConfigurationTest() { doReturn(new org.onap.aai.domain.yang.Configuration()).when(MOCK_aaiObjectMapper) .mapConfiguration(configuration); doReturn(MOCK_aaiResourcesClient).when(MOCK_aaiResourcesClient).createIfNotExists(isA(AAIResourceUri.class), any(Optional.class)); aaiConfigurationResources.createConfiguration(configuration); assertEquals(OrchestrationStatus.INVENTORIED, configuration.getOrchestrationStatus()); verify(MOCK_aaiResourcesClient, times(1)).createIfNotExists(any(AAIResourceUri.class), any(Optional.class)); }