@Test
public void testUpdateMasterBranch() {

    // Setup:
    Branch branch = branchFactory.createNew(MASTER_BRANCH_IRI);
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("Branch " + MASTER_BRANCH_IRI + " is the master Branch and cannot be updated.");
    manager.updateBranch(distributedCatalogId, VERSIONED_RDF_RECORD_IRI, branch);
    verify(utilsService, times(0)).updateObject(eq(branch), any(RepositoryConnection.class));
}