@Test
public void testWaitForSuccessfulFuture() throws IOException {

    Object result = new Object();
    CompletableFuture<Object> future = CompletableFuture.completedFuture(result);
    assertThat(HttpUtils.waitFor(future)).isEqualTo(result);
}