" \"id\" : 2," +
" \"timestamp\" : 1374569908754" +
"}";
Event<?> event = Event.fromJson(json);
@SuppressWarnings("unchecked")
HiveJob job = ((DAGNode<HiveJob>) event.getPayload()).getJob();
assertEquals("job_201307231015_0004 (Stage-1, query-id: ...22c4ea289895)", job.getId());
assertArrayEquals(new String[] { "src" }, job.getAliases());
assertArrayEquals(new String[] { "SELECT", "FILTER" }, job.getFeatures());
assertNotNull(job.getMetrics());
assertEquals(123, job.getMetrics().get("somemetric"));
}