@Test
public void putMultipleImportsTest() {

    cache.put(key3, ontMultipleImports);
    try (DatasetConnection dc = cache.getDatasetConnection(vf.createIRI("http://mobi.com/dataset/" + ResourceUtils.encode(key3)), false)) {
        RepositoryResult<Statement> statements = dc.getStatements(null, null, null, dc.getSystemDefaultNamedGraph());
        Model ontologyModel = RepositoryResults.asModelNoContext(statements, mf);
        assertEquals(ontologyModel.size(), ontMultipleImportsModel.size());
        assertEquals(ontologyModel, ontMultipleImportsModel);
        statements = dc.getStatements(null, null, null, import1SdNgIRI);
        ontologyModel = RepositoryResults.asModelNoContext(statements, mf);
        assertEquals(ontologyModel.size(), import1Model.size());
        assertEquals(ontologyModel, import1Model);
        statements = dc.getStatements(null, null, null, import2SdNgIRI);
        ontologyModel = RepositoryResults.asModelNoContext(statements, mf);
        assertEquals(ontologyModel.size(), import2Model.size());
        assertEquals(ontologyModel, import2Model);
        statements = dc.getStatements(null, null, null, import3SdNgIRI);
        ontologyModel = RepositoryResults.asModelNoContext(statements, mf);
        assertEquals(ontologyModel.size(), import3Model.size());
        assertEquals(ontologyModel, import3Model);
    }
}