@Test
public void shouldLoadRecordsForNextPage() throws JSONException {

    childSearch = new ChildSearch("", repository, null);
    scroller = spy(new PaginatedSearchResultsScroller(childSearch, highlightedFieldsViewAdapter));
    List<Child> children = Arrays.asList(new Child("id", "user", "{\"name\": \"Foo Bar\"}"));
    when(repository.getChildrenMatchingStringBetween(anyString(), anyInt(), anyInt())).thenReturn(children);
    doReturn(true).when(scroller).shouldQueryForMoreData();
    scroller.loadRecordsForNextPage();
    verify(repository, times(1)).getChildrenMatchingStringBetween(anyString(), anyInt(), anyInt());
    verify(highlightedFieldsViewAdapter, times(1)).addAll(children);
}