@Test
public void testEnd(){

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