@Test(expected = IllegalArgumentException.class)
public void testAddVersionedDistributionWithTakenResource() {

    // Setup:
    Distribution dist = distributionFactory.createNew(DISTRIBUTION_IRI);
    manager.addVersionedDistribution(distributedCatalogId, VERSIONED_RECORD_IRI, VERSION_IRI, dist);
    verify(utilsService, times(0)).addObject(eq(dist), any(RepositoryConnection.class));
    verify(utilsService).throwAlreadyExists(DISTRIBUTION_IRI, distributionFactory);
}