PageInfo { void reset() { page = 0; visible = 0; total = 0; } PageInfo(int pageSize);   PageInfo(int pageSize, int page, int visible, int total); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); int getFrom(); int getTo(); int getPage(); int getPages(); int getPageSize(); int getVisible(); int getTotal();  }
@Test public void reset() throws Exception { PageInfo pageInfo = new PageInfo(PAGE_SIZE, 1, 2, 3); pageInfo.reset(); assertEmpty(pageInfo); }