@Test
public void getDeletionsUsingResourceWithQuads() {

    Model expected = MODEL_FACTORY.createModel(Stream.of(
            VALUE_FACTORY.createStatement(VALUE_FACTORY.createIRI("http://mobi.com/test/object1"), titleIRI, VALUE_FACTORY.createLiteral("Test 1 Title")),
            VALUE_FACTORY.createStatement(VALUE_FACTORY.createIRI("http://mobi.com/test/object2"), titleIRI, VALUE_FACTORY.createLiteral("Test 1 Title"), VALUE_FACTORY.createIRI(GRAPHS + "quad-graph1"))
    ).collect(Collectors.toList()));
    try (RepositoryConnection conn = repo.getConnection()) {
        IRI commit = VALUE_FACTORY.createIRI(COMMITS + "quad-test2");
        Stream<Statement> result = service.getDeletions(commit, conn);
        assertEquals(new HashSet<>(expected), result.collect(Collectors.toSet()));
    }
}