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

    // Setup:
    Version version = versionFactory.createNew(VERSION_IRI);
    manager.addVersion(distributedCatalogId, VERSIONED_RECORD_IRI, version);
    verify(utilsService, times(0)).addObject(eq(version), any(RepositoryConnection.class));
    verify(utilsService).throwAlreadyExists(VERSION_IRI, distributionFactory);
}