@Test
public void getInProgressCommitWithPathAndWrongRecordTest() {

    // Setup:
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("InProgressCommit " + IN_PROGRESS_COMMIT_IRI + " does not belong to VersionedRDFRecord " + VERSIONED_RDF_RECORD_MISSING_BRANCH_IRI);
    try (RepositoryConnection conn = repo.getConnection()) {
        service.getInProgressCommit(CATALOG_IRI, VERSIONED_RDF_RECORD_MISSING_BRANCH_IRI, IN_PROGRESS_COMMIT_IRI, conn);
    }
}