@Test
public void getCommitDifferenceTest() {

    try (RepositoryConnection conn = repo.getConnection()) {
        // Setup:
        Resource commitId = VALUE_FACTORY.createIRI("http://mobi.com/test/commits#test1");
        Resource ontologyId = VALUE_FACTORY.createIRI("http://mobi.com/test/ontology");
        Statement addStatement = VALUE_FACTORY.createStatement(ontologyId, titleIRI, VALUE_FACTORY.createLiteral("Test 1 Title"));
        Statement delStatement = VALUE_FACTORY.createStatement(ontologyId, titleIRI, VALUE_FACTORY.createLiteral("Test 0 Title"));
        Difference diff = service.getCommitDifference(commitId, conn);
        assertTrue(diff.getAdditions().contains(addStatement));
        assertTrue(diff.getDeletions().contains(delStatement));
    }
}