@Test
public void responseIsResourceExhausted() {

  final Throwable resourceExhausted = new GoogleJsonResponseException(
      new HttpResponseException.Builder(429, "Too Many Requests", new HttpHeaders()), RESOURCE_EXHAUSTED_ERROR);
  assertThat(GcpUtil.isResourceExhausted(resourceExhausted), is(true));
}