evaluateLauncherJob(launcherJob);
assertTrue(launcherJob.isSuccessful());
assertTrue(LauncherMapper.hasStatsData(launcherJob));
PigActionExecutor ae = new PigActionExecutor();
WorkflowAction wfAction = context.getAction();
ae.check(context, wfAction);
ae.end(context, wfAction);
assertEquals("SUCCEEDED", wfAction.getExternalStatus());
String stats = wfAction.getStats();
assertNotNull(stats);
// check for some of the expected key values in the stats
Map m = (Map)JSONValue.parse(stats);
// check for expected 1st level JSON keys
assertTrue(m.containsKey("PIG_VERSION"));
String expectedChildIDs = wfAction.getExternalChildIDs();
String[] childIDs = expectedChildIDs.split(",");
assertTrue(m.containsKey(childIDs[0]));
Map q = (Map)m.get(childIDs[0]);
// check for expected 2nd level JSON keys