" },\n" +
" \"id\" : 1,\n" +
" \"timestamp\" : 1373560988033\n" +
"}";
Event event = Event.fromJson(json);
PigJob job = ((DAGNode<PigJob>)event.getPayload()).getJob();
assertEquals("job_local_0001", job.getId());
assertArrayEquals(new String[] {"A", "AA", "B", "C"}, job.getAliases());
assertArrayEquals(new String[] {"GROUP_BY", "COMBINER", "MAP_PARTIALAGG"}, job.getFeatures());
assertNotNull(job.getMetrics());
assertEquals(123, job.getMetrics().get("somemetric"));
}