### Question:
JsonToBean { public static CoordinatorAction createCoordinatorAction(JSONObject json) { return (CoordinatorAction) Proxy.newProxyInstance(JsonToBean.class.getClassLoader(), new Class[]{CoordinatorAction.class}, new JsonInvocationHandler(COORD_ACTION, json)); }  static WorkflowAction createWorkflowAction(JSONObject json); static List<WorkflowAction> createWorkflowActionList(JSONArray json); static WorkflowJob createWorkflowJob(JSONObject json); static List<WorkflowJob> createWorkflowJobList(JSONArray json); static CoordinatorAction createCoordinatorAction(JSONObject json); static List<CoordinatorAction> createCoordinatorActionList(JSONArray json); static CoordinatorJob createCoordinatorJob(JSONObject json); static JMSConnectionInfo createJMSConnectionInfo(JSONObject json); static List<CoordinatorJob> createCoordinatorJobList(JSONArray json); static BundleJob createBundleJob(JSONObject json); static List<BundleJob> createBundleJobList(JSONArray json); static BulkResponse createBulkResponse(JSONObject json); static List<BulkResponse> createBulkResponseList(JSONArray json); static List<String> createBulkWriteJobIdList(JSONArray json);  }### Answer:
@SuppressWarnings("unchecked") @Test 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.IGNORED, action.getStatus()); assertEquals("e", action.getRunConf()); assertEquals(JsonUtils.parseDateRfc822(LAST_MODIFIED), action.getLastModifiedTime()); assertEquals("f", action.getMissingDependencies()); assertEquals("ff", action.getPushMissingDependencies()); assertEquals("g", action.getExternalStatus()); assertEquals("h", action.getTrackerUri()); assertEquals("i", action.getConsoleUrl()); assertEquals("j", action.getErrorCode()); assertEquals("k", action.getErrorMessage()); }