### Question:
PendingResult { public <R> R adapt(@NonNull Adapter<T, R> adapter) { return adapter.adapt(future); } PendingResult(Future<T> future,
                  Executor executor); static PendingResult<T> fromFuture(@NonNull Future<T> future); PendingResult<R> transform(@NonNull final Transformer<T, R> transformer); T await(); R adapt(@NonNull Adapter<T, R> adapter); void whenAvailable(@NonNull final Callback<T> callback); void whenDone(@NonNull final Callback<T> callback);  }### Answer:
@Test public void adapt() throws Exception { given(adapter.adapt(FUTURE)) .willReturn(123); int result = testee.adapt(adapter); verify(adapter).adapt(FUTURE); assertEquals(123, result); }