@Test
public void testGetCompiledResourceWithUnmergedPast() throws Exception {

    // Setup:
    Resource commitId = VALUE_FACTORY.createIRI(COMMITS + "test0");
    Model expected = MODEL_FACTORY.createModel();
    expected.add(VALUE_FACTORY.createIRI("http://mobi.com/test/ontology"), typeIRI, VALUE_FACTORY.createIRI("http://www.w3.org/2002/07/owl#Ontology"));
    doReturn(expected).when(utilsService).getCompiledResource(eq(commitId), any(RepositoryConnection.class));
    Model result = manager.getCompiledResource(commitId);
    verify(utilsService).validateResource(eq(commitId), eq(commitFactory.getTypeIRI()), any(RepositoryConnection.class));
    verify(utilsService).getCompiledResource(eq(commitId), any(RepositoryConnection.class));
    result.forEach(statement -> assertTrue(expected.contains(statement)));
}