@Test
public void responseIsPermissionDenied() {

  final Throwable permissionDenied = new GoogleJsonResponseException(
      new HttpResponseException.Builder(403, "Forbidden", new HttpHeaders()), PERMISSION_DENIED_ERROR);
  assertThat(GcpUtil.isPermissionDenied(permissionDenied), is(true));
}