}
@SuppressWarnings("unchecked")
public void testParseCoordinatorAction() {
JSONObject json = createJsonCoordinatorAction();
CoordinatorAction action = JsonToBean.createCoordinatorAction(json);
assertEquals("a", action.getId());
assertEquals("b", action.getJobId());
assertEquals(1, action.getActionNumber());
assertEquals("c", action.getCreatedConf());
assertEquals(JsonUtils.parseDateRfc822(CREATED_TIME), action.getCreatedTime());
assertEquals(JsonUtils.parseDateRfc822(NOMINAL_TIME), action.getNominalTime());
assertEquals("d", action.getExternalId());
assertEquals(CoordinatorAction.Status.DISCARDED, action.getStatus());
assertEquals("e", action.getRunConf());
assertEquals(JsonUtils.parseDateRfc822(LAST_MODIFIED), action.getLastModifiedTime());
assertEquals("f", action.getMissingDependencies());
assertEquals("g", action.getExternalStatus());
assertEquals("h", action.getTrackerUri());
assertEquals("i", action.getConsoleUrl());
assertEquals("j", action.getErrorCode());
assertEquals("k", action.getErrorMessage());
}