### Question:
BBInputSetupMapperLayer { public ServiceInstance mapAAIServiceInstanceIntoServiceInstance( org.onap.aai.domain.yang.ServiceInstance aaiServiceInstance) { ServiceInstance serviceInstance = modelMapper.map(aaiServiceInstance, ServiceInstance.class); if (aaiServiceInstance.getAllottedResources() != null) { for (org.onap.aai.domain.yang.AllottedResource allottedResource : aaiServiceInstance.getAllottedResources() .getAllottedResource()) { serviceInstance.getAllottedResources().add(mapAAIAllottedResource(allottedResource)); } } serviceInstance.setOrchestrationStatus( this.mapOrchestrationStatusFromAAI(aaiServiceInstance.getOrchestrationStatus())); return serviceInstance; }  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 testMapAAIServiceInstanceIntoServiceInstance() throws IOException { ServiceInstance expected = mapper.readValue( new File(RESOURCE_PATH + "ServiceInstance_aaiServiceInstanceToSI.json"), ServiceInstance.class); org.onap.aai.domain.yang.ServiceInstance serviceInstanceAAI = mapper.readValue(new File(RESOURCE_PATH + "ServiceInstanceAAIInput.json"), org.onap.aai.domain.yang.ServiceInstance.class); ServiceInstance actual = bbInputSetupMapperLayer.mapAAIServiceInstanceIntoServiceInstance(serviceInstanceAAI); assertThat(actual, sameBeanAs(expected)); }