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 forStartRowNumber_whenPageSizeIsZero_shouldfailsWithIAE() {
    assertThatThrownBy(() -> OffsetBasedPagination.forStartRowNumber(1, 0))
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("page size must be >= 1");
  }