### Question:
BBInputSetupMapperLayer { protected CloudRegion mapCloudRegion(CloudConfiguration cloudConfiguration, org.onap.aai.domain.yang.CloudRegion aaiCloudRegion) { CloudRegion cloudRegion = new CloudRegion(); if (cloudConfiguration != null) cloudRegion = modelMapper.map(cloudConfiguration, CloudRegion.class); if (aaiCloudRegion != null) modelMapper.map(aaiCloudRegion, cloudRegion); return cloudRegion; }  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 testMapLocationContext() { CloudRegion expected = new CloudRegion(); expected.setCloudOwner("test-owner-name"); expected.setLcpCloudRegionId("cloudRegionId"); expected.setComplex("complexName"); expected.setTenantId("tenantId"); CloudConfiguration cloudConfig = new CloudConfiguration(); cloudConfig.setTenantId("tenantId"); cloudConfig.setLcpCloudRegionId("cloudRegionId"); cloudConfig.setAicNodeClli("aicNodeClli"); org.onap.aai.domain.yang.CloudRegion cloudRegion = new org.onap.aai.domain.yang.CloudRegion(); cloudRegion.setCloudOwner("test-owner-name"); cloudRegion.setCloudRegionId("cloudRegionId"); cloudRegion.setComplexName("complexName"); CloudRegion actual = bbInputSetupMapperLayer.mapCloudRegion(cloudConfig, cloudRegion); assertThat(actual, sameBeanAs(expected)); }
@Test public void testMapCloudRegion() { CloudRegion expected = new CloudRegion(); expected.setCloudOwner("test-owner-name"); expected.setLcpCloudRegionId("cloudRegionId"); expected.setTenantId("tenantId"); expected.setCloudRegionVersion("cloudRegionVersion"); CloudConfiguration cloudConfig = new CloudConfiguration(); cloudConfig.setTenantId("tenantId"); cloudConfig.setLcpCloudRegionId("cloudRegionId"); cloudConfig.setAicNodeClli("aicNodeClli"); org.onap.aai.domain.yang.CloudRegion cloudRegion = new org.onap.aai.domain.yang.CloudRegion(); cloudRegion.setCloudOwner("test-owner-name"); cloudRegion.setCloudRegionId("cloudRegionId"); cloudRegion.setCloudRegionVersion("cloudRegionVersion"); CloudRegion actual = bbInputSetupMapperLayer.mapCloudRegion(cloudConfig, cloudRegion); assertThat(actual, sameBeanAs(expected)); }
@Test public void testMapCloudRegionWithNullCheck() { CloudRegion expected = new CloudRegion(); CloudRegion actual = bbInputSetupMapperLayer.mapCloudRegion(null, null); assertThat(actual, sameBeanAs(expected)); }