### Question:
BBInputSetup implements JavaDelegate { protected void mapGenericVnfs(List<AAIResourceUri> list, List<GenericVnf> genericVnfs) { for (AAIResourceUri aaiResourceUri : list) { genericVnfs.add(this.mapGenericVnf(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 testMapGenericVnfs() throws JsonProcessingException { org.onap.aai.domain.yang.GenericVnf expectedAAI = new org.onap.aai.domain.yang.GenericVnf(); 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); GenericVnf expected = new GenericVnf(); AAIResourceUri aaiResourceUri = AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().genericVnf("vnfId")); AAIResultWrapper vnfWrapper = new AAIResultWrapper(new AAICommonObjectMapperProvider().getMapper().writeValueAsString(expectedAAI)); doReturn(vnfWrapper).when(SPY_bbInputSetupUtils).getAAIResourceDepthOne(aaiResourceUri); doReturn(expected).when(bbInputSetupMapperLayer) .mapAAIGenericVnfIntoGenericVnf(isA(org.onap.aai.domain.yang.GenericVnf.class)); doNothing().when(SPY_bbInputSetup).mapPlatform(any(), eq(expected)); doNothing().when(SPY_bbInputSetup).mapLineOfBusiness(any(), eq(expected)); doReturn(new ArrayList<>()).when(SPY_bbInputSetup).mapVolumeGroups(any()); List<GenericVnf> genericVnfs = new ArrayList<>(); SPY_bbInputSetup.mapGenericVnfs(Arrays.asList(new AAIResourceUri[] {aaiResourceUri}), genericVnfs); assertEquals(expected, genericVnfs.get(0)); verify(SPY_bbInputSetup, times(1)).mapPlatform(any(), eq(expected)); verify(SPY_bbInputSetup, times(1)).mapLineOfBusiness(any(), eq(expected)); verify(SPY_bbInputSetup, times(1)).mapVolumeGroups(any()); }