@Test
public void testGetBeginAndEnd_totalPagesIsSmallerThanMaxDisplayCount() {

    // create parameter
    int maxDisplayCount = 10;
    PaginationInfo info = new PaginationInfo(page, pathTmpl, queryTmpl, maxDisplayCount);
    // run
    BeginAndEnd endNumBig = info.getBeginAndEnd();
    // assert
    assertThat(endNumBig.getBegin(), is(0));
    assertThat(endNumBig.getEnd(), is(6));
}