private static void checkParseError(String json) { try { Schema.Parse(json); } catch (SchemaParseException) { return; } Assert.Fail("Should not have parsed: " + json); }