@Test
public void testTotalCalculatedPagesLessThanTotal(){

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