@Test
public void getMissingVersionTest() {

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