@Test
public void asJsonldWithSkolemizeTest() throws Exception {

    // Setup
    SimpleBNodeService blankNodeService = spy(new SimpleBNodeService());
    blankNodeService.setModelFactory(mf);
    blankNodeService.setValueFactory(vf);
    InputStream stream = this.getClass().getResourceAsStream("/list-ontology.ttl");
    InputStream expected = this.getClass().getResourceAsStream("/list-ontology-skolemize.jsonld");
    Ontology listOntology = new SimpleOntology(Models.createModel(stream, transformer), repo, ontologyManager, catalogManager, catalogConfigProvider, datasetManager, importsResolver, transformer, blankNodeService, vf, mf);
    String jsonld = listOntology.asJsonLD(true).toString();
    assertEquals(removeWhitespace(replaceBlankNodeSuffix(IOUtils.toString(expected, Charset.defaultCharset()))), removeWhitespace(replaceBlankNodeSuffix(jsonld)));
    verify(blankNodeService, atLeast(1)).skolemize(any(com.mobi.rdf.api.Statement.class));
}