public static <T> CommonPager<T> result(final PageParameter pageParameter, final Supplier<Integer> countSupplier, final Supplier<List<T>> listSupplier) {
        Integer count = countSupplier.get();
        if (Objects.nonNull(count) && count > 0) {
            return new CommonPager<>(new PageParameter(pageParameter.getCurrentPage(), pageParameter.getPageSize(), count), listSupplier.get());
        }
        return new CommonPager<>(new PageParameter(pageParameter.getCurrentPage(), pageParameter.getPageSize(), 0), Collections.emptyList());
    }
@Test
    public void testResult() {
        final PageParameter pageParameter = new PageParameter(1, 10, 1);
        final CommonPager<String> result = PageResultUtils.result(pageParameter, () -> 1,
            () -> Collections.singletonList("result1"));
        assertEquals(result.getDataList().size(), 1);
    }