@Test
public void resourceExhausted() {

  Truth.assertThat(createException(Code.RESOURCE_EXHAUSTED))
      .isInstanceOf(ResourceExhaustedException.class);
  Truth.assertThat(createExceptionWithMessage(Code.RESOURCE_EXHAUSTED))
      .isInstanceOf(ResourceExhaustedException.class);
}