### Question:
BBInputSetupMapperLayer { protected ModelInfoInstanceGroup mapCatalogInstanceGroupToInstanceGroup( CollectionResourceCustomization collectionCust, InstanceGroup instanceGroup) { ModelInfoInstanceGroup modelInfoInstanceGroup = modelMapper.map(instanceGroup, ModelInfoInstanceGroup.class); if (instanceGroup.getType() != null && instanceGroup.getType().equals(InstanceGroupType.L3_NETWORK)) modelInfoInstanceGroup.setType(ModelInfoInstanceGroup.TYPE_L3_NETWORK); else modelInfoInstanceGroup.setType(ModelInfoInstanceGroup.TYPE_VNFC); if (collectionCust != null) { List<CollectionResourceInstanceGroupCustomization> instanceGroupCustList = instanceGroup.getCollectionInstanceGroupCustomizations(); for (CollectionResourceInstanceGroupCustomization collectionInsatnceGroupCust : instanceGroupCustList) { if (collectionInsatnceGroupCust.getModelCustomizationUUID() .equalsIgnoreCase(collectionCust.getModelCustomizationUUID())) { modelInfoInstanceGroup.setFunction(collectionInsatnceGroupCust.getFunction()); modelInfoInstanceGroup.setDescription(collectionInsatnceGroupCust.getDescription()); break; } } } return modelInfoInstanceGroup; }  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 testMapCatalogInstanceGroupToInstanceGroup() throws IOException { ModelInfoInstanceGroup expected = mapper.readValue(new File(RESOURCE_PATH + "ModelInfoInstanceGroup.json"), ModelInfoInstanceGroup.class); InstanceGroup instanceGroup = mapper.readValue(new File(RESOURCE_PATH + "InstanceGroup.json"), InstanceGroup.class); instanceGroup.setCollectionInstanceGroupCustomizations(new ArrayList<>()); CollectionResourceInstanceGroupCustomization collectionInstanceGroupCust = new CollectionResourceInstanceGroupCustomization(); collectionInstanceGroupCust.setModelCustomizationUUID("modelCustomizationUUID"); collectionInstanceGroupCust.setFunction("function"); collectionInstanceGroupCust.setDescription("description"); instanceGroup.getCollectionInstanceGroupCustomizations().add(collectionInstanceGroupCust); CollectionResourceCustomization collectionResourceCust = new CollectionResourceCustomization(); collectionResourceCust.setModelCustomizationUUID("modelCustomizationUUID"); ModelInfoInstanceGroup actual = bbInputSetupMapperLayer.mapCatalogInstanceGroupToInstanceGroup(collectionResourceCust, instanceGroup); assertThat(actual, sameBeanAs(expected)); }