@Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof PageParameter)) {
            return false;
        }
        PageParameter that = (PageParameter) o;
        return currentPage == that.currentPage
                && prePage == that.prePage
                && nextPage == that.nextPage
                && pageSize == that.pageSize
                && offset == that.offset
                && totalPage == that.totalPage
                && totalCount == that.totalCount;
    }
@Test
    public void testEquals() {
        assertEquals(pageParameterUnderTest.getCurrentPage(), 1);
        assertEquals(pageParameterUnderTest.getPageSize(), 10);
        assertEquals(pageParameterUnderTest.getNextPage(), 2);
    }