@Test
public void toJSONNullPointerToViolation() {

    ValidationException subject =
            new ValidationException(BooleanSchema.INSTANCE, null,
                    "exception message", emptyList(), "type", null);
    JSONObject actual = subject.toJSON();
    assertEquals(JSONObject.NULL, actual.get("pointerToViolation"));
}