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

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