@Test
public void failedPrecondition() {

  Truth.assertThat(createException(Code.FAILED_PRECONDITION))
      .isInstanceOf(FailedPreconditionException.class);
  Truth.assertThat(createExceptionWithMessage(Code.FAILED_PRECONDITION))
      .isInstanceOf(FailedPreconditionException.class);
}