### Question:
BBInputSetupMapperLayer { protected void setPlatformAndLOBIntoServiceInstance(Platform platformMSO, LineOfBusiness lineOfBusinessMSO, ServiceInstance serviceInstance, Map<ResourceKey, String> resourcesToBeOrchestrated) { String vnfId = resourcesToBeOrchestrated.get(ResourceKey.GENERIC_VNF_ID); if (vnfId != null && !serviceInstance.getVnfs().isEmpty()) { for (GenericVnf vnf : serviceInstance.getVnfs()) { if (vnf.getVnfId().equalsIgnoreCase(vnfId)) { vnf.setPlatform(platformMSO); vnf.setLineOfBusiness(lineOfBusinessMSO); break; } } } }  Customer mapAAICustomer(org.onap.aai.domain.yang.Customer customerAAI); ServiceSubscription mapAAIServiceSubscription(
            org.onap.aai.domain.yang.ServiceSubscription serviceSubscriptionAAI); NetworkPolicy mapAAINetworkPolicy(org.onap.aai.domain.yang.NetworkPolicy aaiNetworkPolicy); ModelInfoServiceInstance mapCatalogServiceIntoServiceInstance(Service service); ServiceInstance mapAAIServiceInstanceIntoServiceInstance(
            org.onap.aai.domain.yang.ServiceInstance aaiServiceInstance); OrchestrationStatus mapOrchestrationStatusFromAAI(String orchestrationStatus); RequestContext mapRequestContext(RequestDetails requestDetails); RouteTableReference mapAAIRouteTableReferenceIntoRouteTableReference(
            org.onap.aai.domain.yang.RouteTableReference aaiRouteTableReference); Configuration mapAAIConfiguration(org.onap.aai.domain.yang.Configuration configurationAAI); NetworkResourceCustomization mapCollectionNetworkResourceCustToNetworkResourceCust(
            CollectionNetworkResourceCustomization collectionNetworkResourceCust); Vnfc mapAAIVnfc(org.onap.aai.domain.yang.Vnfc vnfcAAI); VpnBinding mapAAIVpnBinding(org.onap.aai.domain.yang.VpnBinding aaiVpnBinding); RouteTarget mapAAIRouteTarget(org.onap.aai.domain.yang.RouteTarget aaiRouteTarget);  }### Answer:
@Test public void testSetPlatformAndLOB() throws IOException { ServiceInstance expected = mapper.readValue( new File(RESOURCE_PATH + "ServiceInstance_aaiPlatformAndLOBToSI.json"), ServiceInstance.class); Map<ResourceKey, String> resourcesToBeOrchestrated = new HashMap<>(); resourcesToBeOrchestrated.put(ResourceKey.GENERIC_VNF_ID, "vnfId"); Platform platformMSO = new Platform(); platformMSO.setPlatformName("platformName"); LineOfBusiness lineOfBusinessMSO = new LineOfBusiness(); lineOfBusinessMSO.setLineOfBusinessName("lineOfBusinessName"); ServiceInstance actual = mapper.readValue( new File(RESOURCE_PATH + "ServiceInstanceAAIPlatformAndLOBInput.json"), ServiceInstance.class); bbInputSetupMapperLayer.setPlatformAndLOBIntoServiceInstance(platformMSO, lineOfBusinessMSO, actual, resourcesToBeOrchestrated); assertThat(actual, sameBeanAs(expected)); }