### Question:
AAIConfigurationResources { public Optional<org.onap.aai.domain.yang.Configuration> getConfigurationFromRelatedLink(String relatedLink) { return injectionHelper.getAaiClient().get(org.onap.aai.domain.yang.Configuration.class, AAIUriFactory .createResourceFromExistingURI(Types.CONFIGURATION, UriBuilder.fromPath(relatedLink).build())); }  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 getConfigurationFromRelatedLinkTest() { Optional<org.onap.aai.domain.yang.Configuration> configuration = Optional.of(new org.onap.aai.domain.yang.Configuration()); configuration.get().setConfigurationId("config1"); doReturn(configuration).when(MOCK_aaiResourcesClient).get(eq(org.onap.aai.domain.yang.Configuration.class), isA(AAIResourceUri.class)); aaiConfigurationResources.getConfigurationFromRelatedLink( "http: verify(MOCK_aaiResourcesClient, times(1)).get(eq(org.onap.aai.domain.yang.Configuration.class), isA(AAIResourceUri.class)); }