@Test
public void testVersionedDistributionPathWithMissingCatalog() {

    // Setup:
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("Catalog " + MISSING_IRI + " could not be found");
    try (RepositoryConnection conn = repo.getConnection()) {
        service.validateVersionedDistribution(MISSING_IRI, VERSIONED_RECORD_IRI, VERSION_IRI, DISTRIBUTION_IRI, conn);
    }
}