@Test
public void testScrollRightFitSize(){

    Map<String,Object> stringObjectMap = paginationBuilderService.buildPages(6, 10, 4);
    Integer[] pages = (Integer[]) stringObjectMap.get("pages");
    Integer selected = (Integer) stringObjectMap.get("selected");
    Assert.assertEquals(6,selected, 0);
    Assert.assertEquals(9, pages.length);
    // 2,3,4,5,[6],7,8,9,10
    testPages(pages,
            new Integer[]{
                  2,3,4,5,6,7,8,9,10
            });
}