@Test
public void throwsRuntimeException() {

  try {
    ApiExceptions.callAndTranslateApiException(
        ApiFutures.immediateFailedFuture(new IllegalArgumentException()));
    Assert.fail("ApiExceptions should have thrown an exception");
  } catch (IllegalArgumentException expected) {
    assertThat(expected).isInstanceOf(IllegalArgumentException.class);
  }
}