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

server.enqueue(new MockResponse().setBody("Hi"));
TestSubscriber<Void> subscriber = new TestSubscriber<>();
service.completable().subscribe(subscriber);
subscriber.assertCompleted();
}
@Test public void completableSuccess404() {
server.enqueue(new MockResponse().setResponseCode(404));
TestSubscriber<Void> subscriber = new TestSubscriber<>();
service.completable().subscribe(subscriber);
Throwable cause = subscriber.getOnErrorEvents().get(0);
