### Question:
BBInputSetup implements JavaDelegate { protected void mapCatalogVnf(GenericVnf genericVnf, ModelInfo modelInfo, Service service) { VnfResourceCustomization vnfResourceCustomization = getVnfResourceCustomizationFromService(modelInfo, service); if (vnfResourceCustomization != null) { genericVnf.setModelInfoGenericVnf(this.mapperLayer.mapCatalogVnfToVnf(vnfResourceCustomization)); } }  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 testMapCatalogVnf() { ModelInfoGenericVnf modelInfoGenericVnf = new ModelInfoGenericVnf(); GenericVnf genericVnf = new GenericVnf(); RequestDetails requestDetails = new RequestDetails(); ModelInfo modelInfo = new ModelInfo(); modelInfo.setModelCustomizationUuid("modelCustomizationUUID"); requestDetails.setModelInfo(modelInfo); Service service = new Service(); VnfResourceCustomization resourceCust = new VnfResourceCustomization(); resourceCust.setModelCustomizationUUID("vnfModelCustomizationUUID"); service.getVnfCustomizations().add(resourceCust); resourceCust.setModelCustomizationUUID("modelCustomizationUUID"); doReturn(modelInfoGenericVnf).when(bbInputSetupMapperLayer).mapCatalogVnfToVnf(resourceCust); SPY_bbInputSetup.mapCatalogVnf(genericVnf, modelInfo, service); assertEquals(modelInfoGenericVnf, genericVnf.getModelInfoGenericVnf()); }