@Test
public void testProjectNotVisible() throws Exception {

  final NoSuchProjectException err = new NoSuchProjectException(name);
  validate().andThrow(err);
  doReplay();
  try {
    new ListBranches(pcf, grm, name).call();
    fail("did not throw when expected not authorized");
  } catch (NoSuchProjectException e2) {
    assertSame(err, e2);
  }
  doVerify();
}