@Test
public void updateCommitWithResourceWithoutAdditionsSetTest() {

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