### Question:
DeleteVFModule { public void createInventoryVariable(BuildingBlockExecution execution) { try { VfModule vfModule = extractPojosForBB.extractByKey(execution, ResourceKey.VF_MODULE_ID); GenericVnf vnf = extractPojosForBB.extractByKey(execution, ResourceKey.GENERIC_VNF_ID); GeneralBuildingBlock gBBInput = execution.getGeneralBuildingBlock(); CloudInformation cloudInformation = new CloudInformation(); cloudInformation.setOwner(gBBInput.getCloudRegion().getCloudOwner()); cloudInformation.setRegionId(gBBInput.getCloudRegion().getLcpCloudRegionId()); cloudInformation.setTenantId(gBBInput.getTenant().getTenantId()); cloudInformation.setTenantName(gBBInput.getTenant().getTenantName()); cloudInformation.setTenantContext(gBBInput.getTenant().getTenantContext()); cloudInformation.setTemplateInstanceId(vfModule.getHeatStackId()); cloudInformation.setVnfName(vnf.getVnfName()); cloudInformation.setVnfId(vnf.getVnfId()); cloudInformation.setVfModuleId(vfModule.getVfModuleId()); execution.setVariable("cloudInformation", cloudInformation); } catch (Exception e) { logger.error("Error building CloudInformation Object for NC Inventory", e); exceptionUtil.buildAndThrowWorkflowException(execution, 7000, e); } }  void createInventoryVariable(BuildingBlockExecution execution);  }### Answer:
@Test public void createInventoryVariable_Success() throws BBObjectNotFoundException { BuildingBlockExecution buildingBlockExecution = prepareBuildingBlockExecution(); when(extractPojosForBB.extractByKey(buildingBlockExecution, ResourceKey.VF_MODULE_ID)) .thenReturn(prepareVmModule()); when(extractPojosForBB.extractByKey(buildingBlockExecution, ResourceKey.GENERIC_VNF_ID)) .thenReturn(prepareGenericVnf()); testedObject.createInventoryVariable(buildingBlockExecution); verifyExecution(buildingBlockExecution); }