@Test
public void testToJSON() {

    ValidationException subject =
            new ValidationException(BooleanSchema.INSTANCE, new StringBuilder("#/a/b"),
                    "exception message", emptyList(), "type", null);
    JSONObject expected = loader.readObj("exception-to-json.json");
    JSONObject actual = subject.toJSON();
    assertThat(actual, sameJsonAs(expected));
}