### Question:
BBInputSetup implements JavaDelegate { protected void mapCatalogNetwork(L3Network network, ModelInfo modelInfo, Service service) { NetworkResourceCustomization networkResourceCustomization = null; for (NetworkResourceCustomization resourceCust : service.getNetworkCustomizations()) { if (resourceCust.getModelCustomizationUUID().equalsIgnoreCase(modelInfo.getModelCustomizationUuid())) { networkResourceCustomization = resourceCust; break; } } if (networkResourceCustomization != null) { network.setModelInfoNetwork(this.mapperLayer.mapCatalogNetworkToNetwork(networkResourceCustomization)); } }  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 testMapCatalogNetwork() { ModelInfoNetwork modelInfoNetwork = new ModelInfoNetwork(); L3Network network = new L3Network(); RequestDetails requestDetails = new RequestDetails(); ModelInfo modelInfo = new ModelInfo(); modelInfo.setModelCustomizationUuid("modelCustomizationUUID"); requestDetails.setModelInfo(modelInfo); Service service = new Service(); NetworkResourceCustomization resourceCust = new NetworkResourceCustomization(); resourceCust.setModelCustomizationUUID("modelCustomizationUUID"); service.setNetworkCustomizations(Arrays.asList(new NetworkResourceCustomization[] {resourceCust})); doReturn(modelInfoNetwork).when(bbInputSetupMapperLayer).mapCatalogNetworkToNetwork(resourceCust); SPY_bbInputSetup.mapCatalogNetwork(network, modelInfo, service); assertEquals(modelInfoNetwork, network.getModelInfoNetwork()); }