### Question:
SimplePendingResult extends PendingResult<Status> { @NonNull @Override public Status await() { return generateStatus(); } SimplePendingResult(boolean hasResult); @NonNull @Override Status await(); @NonNull @Override Status await(long time, @NonNull TimeUnit timeUnit); @Override void cancel(); @Override boolean isCanceled(); @Override void setResultCallback(@NonNull ResultCallback callback); @Override void setResultCallback(@NonNull ResultCallback callback, long time,
      @NonNull TimeUnit timeUnit);  }### Answer:
@Test public void await_shouldReturnSuccess() { assertThat(result.await().getStatus().getStatusCode()).isEqualTo(Status.SUCCESS); }
@Test public void await_delay_shouldReturnSuccess() { assertThat(result.await(1000, TimeUnit.MILLISECONDS).getStatus().getStatusCode()).isEqualTo( Status.SUCCESS); }