@Test
public void testEdgeCaseCenter(){

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