@Test
public void getRevisionChangesTest() throws Exception {

    // Setup
    IRI commitId = VALUE_FACTORY.createIRI(COMMITS + "quad-test2");
    IRI object1 = VALUE_FACTORY.createIRI("http://mobi.com/test/object1");
    IRI object2 = VALUE_FACTORY.createIRI("http://mobi.com/test/object2");
    IRI defaultAdds = getAdditionsResource(commitId);
    IRI defaultDels = getDeletionsResource(commitId);
    IRI graph1Adds = getQuadAdditionsResource(commitId, GRAPHS + "quad-graph1");
    IRI graph1Dels = getQuadDeletionsResource(commitId, GRAPHS + "quad-graph1");
    // Expected Data
    Statement add1 = VALUE_FACTORY.createStatement(object1, titleIRI, VALUE_FACTORY.createLiteral("Test 2 Title"), defaultAdds);
    Statement add2 = VALUE_FACTORY.createStatement(object2, titleIRI, VALUE_FACTORY.createLiteral("Test 2 Title"), graph1Adds);
    Model adds = MODEL_FACTORY.createModel(Stream.of(add1, add2).collect(Collectors.toSet()));
    Statement del1 = VALUE_FACTORY.createStatement(object1, titleIRI, VALUE_FACTORY.createLiteral("Test 1 Title"), defaultDels);
    Statement del2 = VALUE_FACTORY.createStatement(object2, titleIRI, VALUE_FACTORY.createLiteral("Test 1 Title"), graph1Dels);
    Model dels = MODEL_FACTORY.createModel(Stream.of(del1, del2).collect(Collectors.toSet()));
    // Test
    try (RepositoryConnection conn = repo.getConnection()) {
        Difference diff = service.getRevisionChanges(commitId, conn);
        assertEquals(adds, diff.getAdditions());
        assertEquals(dels, diff.getDeletions());
    }
}