@Test
public void schemaPointerIsPopulated() {

    JSONObject rawSchema = ResourceLoader.DEFAULT.readObj("objecttestschemas.json")
            .getJSONObject("objectWithSchemaDep");
    ObjectSchema schema = (ObjectSchema) SchemaLoader.load(rawSchema);
    String actualSchemaPointer = schema.getSchemaDependencies().get("a").getSchemaLocation();
    String expectedSchemaPointer = new JSONPointer(asList("dependencies", "a")).toURIFragment();
    assertEquals(expectedSchemaPointer, actualSchemaPointer);
}