@Test
public void testIterable() throws ScriptException, NoSuchMethodException
{

    Map<String,Object> jsonObj = new HashMap<>();
    jsonObj.put("x", Arrays.asList(1,2,3));
    String json = JSONUtil.toJSON(jsonObj);
    validateJSON(json);
    assertThat(json, is("{\"x\":[1,2,3]}"));
}