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

    // Setup:
    Record record = recordFactory.createNew(RECORD_IRI);
    manager.addRecord(distributedCatalogId, record);
    verify(utilsService, times(0)).addObject(eq(record), any(RepositoryConnection.class));
    verify(utilsService).throwAlreadyExists(RECORD_IRI, recordFactory);
}