public static OffsetBasedPagination forOffset(int offset, int pageSize) {
    checkArgument(offset >= 0, "offset must be >= 0");
    checkArgument(pageSize >= 1, "page size must be >= 1");
    return new OffsetBasedPagination(offset, pageSize);
  }
@Test
  void hashcode_whenDifferentOffset_shouldBeNotEquals() {
    Assertions.assertThat(OffsetBasedPagination.forOffset(10, 20))
      .doesNotHaveSameHashCodeAs(OffsetBasedPagination.forOffset(15, 20));
  }