@Test
public void getMissingVersionedDistributionTest() {

    // Setup:
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("Distribution " + RANDOM_IRI + " could not be found");
    try (RepositoryConnection conn = repo.getConnection()) {
        service.getVersionedDistribution(CATALOG_IRI, VERSIONED_RECORD_MISSING_VERSION_IRI, VERSION_MISSING_DISTRIBUTION_IRI, RANDOM_IRI, conn);
    }
}