@Test
public void shouldFailToVerifyToken() throws GeneralSecurityException, IOException {

  when(verifier.verify(anyString())).thenThrow(new IOException());
  assertThat(validator.authenticate("token"), is(nullValue()));
  verifyZeroInteractions(idToken);
  verifyZeroInteractions(projectsGetAncestry);
  verifyZeroInteractions(iam);
}