@Test
public void putNoImportsTest() {

    cache.put(key1, ontNoImports);
    try (DatasetConnection dc = cache.getDatasetConnection(vf.createIRI("http://mobi.com/dataset/" + ResourceUtils.encode(key1)), false)) {
        RepositoryResult<Statement> statements = dc.getStatements(null, null, null, dc.getSystemDefaultNamedGraph());
        Model ontologyModel = RepositoryResults.asModelNoContext(statements, mf);
        assertEquals(ontologyModel.size(), ontNoImportsModel.size());
        assertEquals(ontologyModel, ontNoImportsModel);
    }
}