public static OffsetBasedPagination forStartRowNumber(int startRowNumber, int pageSize) {
    checkArgument(startRowNumber >= 1, "startRowNumber must be >= 1");
    checkArgument(pageSize >= 1, "page size must be >= 1");
    return new OffsetBasedPagination(startRowNumber - 1, pageSize);
  }
@Test
  void hashcode_whenSameObjects_shouldBeEquals() {
    OffsetBasedPagination offsetBasedPagination = OffsetBasedPagination.forStartRowNumber(15, 20);
    Assertions.assertThat(offsetBasedPagination).hasSameHashCodeAs(offsetBasedPagination);
  }