}
protected void doParseExceptionTest(String s, int nextKind) {
ParseException caught = null;
try {
new JSON(new StringReader(s)).JSONValue();
} catch (ParseException e) {
caught = e;
} finally {
assertNotNull("caught exception", caught);
assertNotNull("exception message(" + s + ")", caught.getMessage());