}
@Test
public void test_that_second_level_nodes_generated_correct_json() throws JSONException {
List<Statistics> nodeList = new ArrayList<Statistics>();
nodeList.add(new ManagerStatistics("A", "ACCOUNT", "Y"));
nodeList.add(new ManagerStatistics("B", "ACCOUNT", "Y"));
nodeList.add(new ManagerStatistics("A:C", "ACCOUNT", "Y"));
JSONArray jsonObject = BuildJsonObjectsUtil.buildTreeTypeMenuJsonObject("treeMenuID", nodeList, new ArrayList<Alert>(), new ArrayList<GroupedStatistics>(), 0, 20, false, "chart");
assertEquals("[{\"id\":\"A\",\"name\":\"A\",\"children\":[],\"nodeType\":\"chart\",\"chart\":\"A\",\"_id\":null},{\"id\":\"B\",\"name\":\"B\",\"children\":[],\"nodeType\":\"chart\",\"chart\":\"B\",\"_id\":null}]", jsonObject.toString());
}