@Test
public void testUpdateBranch() throws Exception {

    // Setup:
    Branch branch = branchFactory.createNew(BRANCH_IRI);
    branch.getModel().add(BRANCH_IRI, titleIRI, VALUE_FACTORY.createLiteral("New Title"));
    manager.updateBranch(distributedCatalogId, VERSIONED_RDF_RECORD_IRI, branch);
    verify(utilsService).validateBranch(eq(distributedCatalogId), eq(VERSIONED_RDF_RECORD_IRI), eq(BRANCH_IRI), any(RepositoryConnection.class));
    verify(utilsService).updateObject(eq(branch), any(RepositoryConnection.class));
}