### Question:
BBInputSetup implements JavaDelegate { protected void mapCatalogVolumeGroup(VolumeGroup volumeGroup, ModelInfo modelInfo, Service service, String vnfModelCustomizationUUID) { VfModuleCustomization vfResourceCustomization = getVfResourceCustomization(modelInfo, service, vnfModelCustomizationUUID); if (vfResourceCustomization != null) { volumeGroup.setModelInfoVfModule(this.mapperLayer.mapCatalogVfModuleToVfModule(vfResourceCustomization)); } }  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 testMapCatalogVolumeGroup() { VolumeGroup volumeGroup = new VolumeGroup(); RequestDetails requestDetails = new RequestDetails(); ModelInfo modelInfo = new ModelInfo(); modelInfo.setModelCustomizationUuid("modelCustomizationUUID"); requestDetails.setModelInfo(modelInfo); Service service = new Service(); VnfResourceCustomization resourceCust = new VnfResourceCustomization(); resourceCust.setModelCustomizationUUID("vnfModelCustomizationUUID"); service.getVnfCustomizations().add(resourceCust); VfModuleCustomization vfResourceCust = new VfModuleCustomization(); vfResourceCust.setModelCustomizationUUID("modelCustomizationUUID"); ModelInfoVfModule modelInfoVfModule = new ModelInfoVfModule(); resourceCust.getVfModuleCustomizations().add(vfResourceCust); doReturn(modelInfoVfModule).when(bbInputSetupMapperLayer).mapCatalogVfModuleToVfModule(vfResourceCust); SPY_bbInputSetup.mapCatalogVolumeGroup(volumeGroup, modelInfo, service, "vnfModelCustomizationUUID"); assertEquals(modelInfoVfModule, volumeGroup.getModelInfoVfModule()); }