### Question:
JsonToBean { public static WorkflowAction createWorkflowAction(JSONObject json) { return (WorkflowAction) Proxy.newProxyInstance(JsonToBean.class.getClassLoader(), new Class[]{WorkflowAction.class}, new JsonInvocationHandler(WF_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:
@Test public void testParseWorkflowAction() { JSONObject json = createJsonWorkflowAction(); WorkflowAction action = JsonToBean.createWorkflowAction(json); assertEquals("a", action.getId()); assertEquals("b", action.getName()); assertEquals("c", action.getType()); assertEquals("d", action.getConf()); assertEquals(WorkflowAction.Status.RUNNING, action.getStatus()); assertEquals(1, action.getRetries()); assertEquals(JsonUtils.parseDateRfc822(START_TIME), action.getStartTime()); assertEquals(JsonUtils.parseDateRfc822(END_TIME), action.getEndTime()); assertEquals("e", action.getTransition()); assertEquals("ee", action.getData()); assertEquals("f", action.getExternalId()); assertEquals("g", action.getExternalStatus()); assertEquals("h", action.getTrackerUri()); assertEquals("i", action.getConsoleUrl()); assertEquals("j", action.getErrorCode()); assertEquals("k", action.getErrorMessage()); }