@Test
public void testAddInProgressCommitWithNoUser() {

    // Setup:
    InProgressCommit commit = inProgressCommitFactory.createNew(NEW_IRI);
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("User not set on InProgressCommit " + commit.getResource());
    manager.addInProgressCommit(distributedCatalogId, VERSIONED_RDF_RECORD_IRI, commit);
    verify(utilsService, times(0)).addObject(eq(commit), any(RepositoryConnection.class));
}