assertThat(res.getNextPage(), equalTo(0));
assertThat(res.getPageTotal(), equalTo(1));
}
public void at_the_first_page_with_next() {
Pager res = new PagerJson(0, 10, 15);
assertThat(res.isHasPrevious(), is(false));
assertThat(res.isHasNext(), is(true));
assertThat(res.getFirstIndex(), equalTo(1));
assertThat(res.getLastIndex(), equalTo(10));
assertThat(res.getPreviousPage(), equalTo(0));
assertThat(res.getPage(), equalTo(0));
assertThat(res.getNextPage(), equalTo(1));
assertThat(res.getPageTotal(), equalTo(2));
}