@Test
public void testPigProcessMapper() throws Exception {
Process process = ConfigurationStore.get().get(EntityType.PROCESS, "pig-process");
Assert.assertEquals("pig", process.getWorkflow().getEngine().value());
WORKFLOWAPP parentWorkflow = initializeProcessMapper(process, "12", "360");
testParentWorkflow(process, parentWorkflow);
List<Object> decisionOrForkOrJoin = parentWorkflow.getDecisionOrForkOrJoin();
ACTION pigAction = (ACTION) decisionOrForkOrJoin.get(3);
Assert.assertEquals("user-pig-job", pigAction.getName());
Assert.assertEquals("${nameNode}/apps/pig/id.pig", pigAction.getPig().getScript());
Assert.assertEquals(Collections.EMPTY_LIST, pigAction.getPig().getArchive());