@Test
public void updateCommitWithCommitWithoutDeletionsSetTest() {

    try (RepositoryConnection conn = repo.getConnection()) {
        // Setup:
        Commit commit = getThing(COMMIT_NO_DELETIONS_IRI, commitFactory, conn);
        thrown.expect(IllegalStateException.class);
        thrown.expectMessage("Deletions not set on Commit " + COMMIT_NO_DELETIONS_IRI);
        service.updateCommit(commit, MODEL_FACTORY.createModel(), MODEL_FACTORY.createModel(), conn);
    }
}