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

    JsonObject jsonObj = new JsonObject(1);
    String[] ids = { "a\\u1234", "\\u1234x" };
    for ( String id : ids ){
        jsonObj.clear();
        jsonObj.add(id, 0);
        String json = jsonObj.toJSON();
        validateJSON(json);
        assertThat(json, is("{\""+id+"\":0}"));
    }
}