### Question:
WorkflowResourceIdsUtils { public static WorkflowResourceIds getWorkflowResourceIdsFromExecution(DelegateExecution execution) { WorkflowResourceIds workflowResourceIds = new WorkflowResourceIds(); workflowResourceIds.setServiceInstanceId((String) execution.getVariable("serviceInstanceId")); workflowResourceIds.setNetworkId((String) execution.getVariable("networkId")); workflowResourceIds.setVfModuleId((String) execution.getVariable("vfModuleId")); workflowResourceIds.setVnfId((String) execution.getVariable("vnfId")); workflowResourceIds.setVolumeGroupId((String) execution.getVariable("volumeGroupId")); workflowResourceIds.setInstanceGroupId((String) execution.getVariable("instanceGroupId")); return workflowResourceIds; } private  WorkflowResourceIdsUtils(); static void setResourceIdByWorkflowType(WorkflowResourceIds workflowResourceIds, WorkflowType resourceType,
            String resourceId); static WorkflowResourceIds getWorkflowResourceIdsFromExecution(DelegateExecution execution);  }### Answer:
@Test public void shouldProperlySetFieldsFromExecution() { DelegateExecutionFake execution = new DelegateExecutionFake(); execution.setVariable("serviceInstanceId", SERVICE_ID); execution.setVariable("networkId", NETWORK_ID); execution.setVariable("vfModuleId", VF_MODULE_ID); execution.setVariable("vnfId", VNF_ID); execution.setVariable("volumeGroupId", VOLUME_GROUP_ID); execution.setVariable("instanceGroupId", INSTANCE_GROUP_ID); workflowResourceIds = WorkflowResourceIdsUtils.getWorkflowResourceIdsFromExecution(execution); assertEquals(SERVICE_ID, workflowResourceIds.getServiceInstanceId()); assertEquals(NETWORK_ID, workflowResourceIds.getNetworkId()); assertEquals(VF_MODULE_ID, workflowResourceIds.getVfModuleId()); assertEquals(VNF_ID, workflowResourceIds.getVnfId()); assertEquals(VOLUME_GROUP_ID, workflowResourceIds.getVolumeGroupId()); assertEquals(INSTANCE_GROUP_ID, workflowResourceIds.getInstanceGroupId()); }