@Test
public void testPassUndefined()
{

    JSONConfig cfg = new JSONConfig().setUseECMA6(false).setBadCharacterPolicy(JSONConfig.PASS);
    StringBuilder buf = new StringBuilder();
    Random rand = new Random();
    for ( int i = 0; i <= BAD_CHARS; i++ ){
        int cp = getRandomUndefined(rand);
        buf.setLength(0);
        buf.appendCodePoint(cp);
        assertThat(JSONUtil.toJSON(undefinedTestMap(cp), cfg), is(makeResult(buf)));
    }
}