public static Pagination pageStartingAt(Integer offset, Integer total, Integer pageSize) {
        return new Pagination(offset, total, pageSize);
    }
@Test
    public void shouldNotCreatePaginationWithMoreThan300Records() {
        try {
            Pagination.pageStartingAt(0, 1000, 301);
        } catch (Exception e) {
            assertThat(e.getMessage(), is("The max number of perPage is [300]."));
        }
    }