@Test
public void shouldHitProjectCache() throws IOException {

  // Populate cache
  idTokenPayload.setEmail("foo@foo.iam.gserviceaccount.com");
  assertThat(validator.authenticate("token"), is(idToken));
  // Hit cache
  reset(cloudResourceManager.projects());
  idTokenPayload.setEmail("bar@foo.iam.gserviceaccount.com");
  assertThat(validator.authenticate("token"), is(idToken));
  verify(cloudResourceManager.projects(), never()).getAncestry(eq("foo"), any());
  verifyZeroInteractions(projectsGetAncestry);
  verifyZeroInteractions(iam);
}