@Test
public void canProcessFailed() {

    PagedList<String> list = new PagedList<>();
    list.addAll(asList(
            mkRequest("foo"),
            mkRequest(null),
            mkRequest("baz")
    ));
    final List<String> processed = new ArrayList<>();
    list.ifFailure(e -> processed.add(e.getBody()));
    assertEquals(null, processed.get(0));
}