@Test
public void keyExistsTreatsPermissionDeniedAsNotFound() throws Exception {

  when(get.execute()).thenThrow(PERMISSION_DENIED);
  assertThat(sakm.keyExists("foo"), is(false));
  verify(iam.projects().serviceAccounts().keys()).get("foo");
}