@Test
public void setPage() throws Exception {

    PageInfo pageInfo = new PageInfo(PAGE_SIZE, 0, 50, 100);
    pageInfo.setPage(1);
    assertEquals(1, pageInfo.getPage());
    assertEquals(11, pageInfo.getFrom());
    assertEquals(20, pageInfo.getTo());
}