### Question:
BBInputSetup implements JavaDelegate { protected L3Network createNetwork(Map<ResourceKey, String> lookupKeyMap, String instanceName, String networkId, List<Map<String, String>> instanceParams, BBInputSetupParameter parameter) { lookupKeyMap.put(ResourceKey.NETWORK_ID, networkId); L3Network network = new L3Network(); network.setNetworkId(networkId); network.setNetworkName(instanceName); network.setOrchestrationStatus(OrchestrationStatus.PRECREATED); if (parameter != null) { if (parameter.getLineOfBusiness() != null) { network.setLineOfBusiness(this.mapperLayer.mapRequestLineOfBusiness(parameter.getLineOfBusiness())); } if (parameter.getLineOfBusiness() != null) { network.setPlatform(this.mapperLayer.mapRequestPlatform(parameter.getPlatform())); } } if (instanceParams != null) { for (Map<String, String> params : instanceParams) { network.getCloudParams().putAll(params); } } return network; }  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 testCreateNetwork() { String networkId = "networkId"; String instanceName = "networkName"; Map<String, String> cloudParams = new HashMap<>(); cloudParams.put("param1", "param1Value"); L3Network expected = new L3Network(); expected.setNetworkId(networkId); expected.setNetworkName(instanceName); expected.setCloudParams(cloudParams); Platform platform = new Platform(); platform.setPlatformName("platformName"); expected.setPlatform(platform); LineOfBusiness lineOfBusiness = new LineOfBusiness(); lineOfBusiness.setLineOfBusinessName("lineOfBusiness"); expected.setLineOfBusiness(lineOfBusiness); expected.setOrchestrationStatus(OrchestrationStatus.PRECREATED); Map<ResourceKey, String> lookupKeyMap = new HashMap<>(); List<Map<String, String>> instanceParams = new ArrayList<>(); instanceParams.add(cloudParams); org.onap.so.serviceinstancebeans.Platform platformRequest = new org.onap.so.serviceinstancebeans.Platform(); org.onap.so.serviceinstancebeans.LineOfBusiness lineOfBusinessRequest = new org.onap.so.serviceinstancebeans.LineOfBusiness(); lineOfBusinessRequest.setLineOfBusinessName("lineOfBusiness"); platformRequest.setPlatformName("platformName"); BBInputSetupParameter parameter = new BBInputSetupParameter.Builder().setRequestId(REQUEST_ID) .setPlatform(platformRequest).setLineOfBusiness(lineOfBusinessRequest).build(); L3Network actual = SPY_bbInputSetup.createNetwork(lookupKeyMap, instanceName, networkId, instanceParams, parameter); assertThat(actual, sameBeanAs(expected)); assertEquals("LookupKeyMap is populated", networkId, lookupKeyMap.get(ResourceKey.NETWORK_ID)); expected.getCloudParams().clear(); actual = SPY_bbInputSetup.createNetwork(lookupKeyMap, instanceName, networkId, null, parameter); assertThat(actual, sameBeanAs(expected)); }