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

    // Setup:
    Branch branch = branchFactory.createNew(BRANCH_IRI);
    manager.addBranch(distributedCatalogId, VERSIONED_RDF_RECORD_IRI, branch);
    verify(utilsService, times(0)).addObject(eq(branch), any(RepositoryConnection.class));
    verify(utilsService).throwAlreadyExists(BRANCH_IRI, distributionFactory);
}