### Question:
BBInputSetup implements JavaDelegate { protected void mapConfigurations(List<AAIResourceUri> relatedAAIUris, List<Configuration> configurations) { for (AAIResourceUri aaiResourceUri : relatedAAIUris) { configurations.add(mapConfiguration(aaiResourceUri)); } }  BBInputSetupUtils getBbInputSetupUtils(); void setCloudInfoFromAAI(CloudInfoFromAAI cloudInfoFromAAI); void setBbInputSetupUtils(BBInputSetupUtils bbInputSetupUtils); BBInputSetupMapperLayer getMapperLayer(); void setMapperLayer(BBInputSetupMapperLayer mapperLayer); @Override void execute(DelegateExecution execution); ServiceInstance getExistingServiceInstance(org.onap.aai.domain.yang.ServiceInstance serviceInstanceAAI);  }### Answer:
@Test public void testMapConfigurations() throws JsonProcessingException { org.onap.aai.domain.yang.Configuration expectedAAI = new org.onap.aai.domain.yang.Configuration(); org.onap.aai.domain.yang.RelationshipList relationshipList = new org.onap.aai.domain.yang.RelationshipList(); org.onap.aai.domain.yang.Relationship relationship = new org.onap.aai.domain.yang.Relationship(); relationshipList.getRelationship().add(relationship); expectedAAI.setRelationshipList(relationshipList); Configuration expected = new Configuration(); AAIResourceUri aaiResourceUri = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().configuration("configurationId")); AAIResultWrapper configurationWrapper = new AAIResultWrapper(new AAICommonObjectMapperProvider().getMapper().writeValueAsString(expectedAAI)); doReturn(configurationWrapper).when(SPY_bbInputSetupUtils).getAAIResourceDepthOne(aaiResourceUri); doReturn(expected).when(bbInputSetupMapperLayer) .mapAAIConfiguration(isA(org.onap.aai.domain.yang.Configuration.class)); List<Configuration> configurations = new ArrayList<>(); SPY_bbInputSetup.mapConfigurations(Arrays.asList(new AAIResourceUri[] {aaiResourceUri}), configurations); assertEquals(expected, configurations.get(0)); }