Throwable cause = e.getCause();</BUG>
assertThat(cause).isInstanceOf(HttpException.class).hasMessage("HTTP 404 Client Error");
<BUG>}</BUG>
}
@Test public void completableFailure() {
<BUG>server.enqueue(new MockResponse().setSocketPolicy(DISCONNECT_AFTER_REQUEST));
try {
service.completable().await();
fail();
} catch (RuntimeException e) {
assertThat(e.getCause()).isInstanceOf(IOException.class);</BUG>
}

server.enqueue(new MockResponse().setBody("Hi"));
TestSubscriber<Void> subscriber = new TestSubscriber<>();
service.completable().subscribe(subscriber);
subscriber.assertCompleted();
