### Question:
JsonToBean { public static List<WorkflowAction> createWorkflowActionList(JSONArray json) { List<WorkflowAction> list = new ArrayList<WorkflowAction>(); for (Object obj : json) { list.add(createWorkflowAction((JSONObject) obj)); } return list; }  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 testParseWorkflowActions() { JSONArray array = createJsonWorkflowActionList(); List<WorkflowAction> list = JsonToBean.createWorkflowActionList(array); assertEquals(2, list.size()); assertEquals("a1", list.get(0).getId()); assertEquals("a2", list.get(1).getId()); }