@Test
public void testGetWorkflowInstanceId() throws Exception {

   String workflowInstId = "12345";
   PGETaskInstance pgeTask = createTestInstance();
   pgeTask.pgeMetadata.replaceMetadata(CoreMetKeys.WORKFLOW_INST_ID,
         workflowInstId);
   assertEquals(workflowInstId, pgeTask.getWorkflowInstanceId());
}