@Test
public void canBeSchemaWithV6hasProperExceptionMessage() {

    Consumer<JsonValue> ifSchema = spy(schemaConsumer());
    JsonValue subject = asV6Value(42);
    try {
        subject.canBeSchema(ifSchema).requireAny();
    } catch (SchemaException e) {
        assertEquals("#: expected type is one of Boolean or JsonObject, found: Integer", e.getMessage());
    }
    verify(ifSchema, never()).accept(subject);
}