@Test
public void futureCall() {

  List<List<Integer>> results =
      Arrays.asList(
          Arrays.asList(0, 1, 2), Arrays.asList(3, 4), Collections.<Integer>emptyList());
  PagedStashCallable callable = new PagedStashCallable(results);
  PagedCallable<Integer, List<Integer>, ListIntegersPagedResponse> pagedCallable =
      new PagedCallable<>(callable, new ListIntegersPagedResponseFactory());
  Truth.assertThat(
          ImmutableList.copyOf(
              pagedCallable.call(0, FakeCallContext.createDefault()).iterateAll()))
      .containsExactly(0, 1, 2, 3, 4)
      .inOrder();
}