@Test
void checkFilter() {

    final Function<T, BigDecimal> f = o -> BigDecimal.ONE;
    final Select sel = mock(Select.class);
    final RoboZonkyFilter filter = new RoboZonkyFilter();
    final PaginatedApi<BigDecimal, T> p = spy(new PaginatedApi<>(null, null, null, null));
    doReturn(BigDecimal.ONE).when(p)
        .execute(eq(f), eq(filter), anyBoolean());
    assertThat(p.execute(f, sel, filter)).isEqualTo(BigDecimal.ONE);
    verify(sel).accept(filter);
    verify(p).execute(eq(f), any(RoboZonkyFilter.class), eq(true));
}