@Override
    public MongoPaginationHelper<T> includeGrandTotal(boolean includeGrandTotal) {
        return new DefaultMongoPaginationHelper<>(collection, filter, sort, perPage, includeGrandTotal,
                grandTotalFilter, collation);
    }
@Test
    void testIncludeGrandTotal() {
        assertThat(paginationHelper.page(1).grandTotal())
                .isEqualTo(paginationHelper.includeGrandTotal(false).page(1).grandTotal())
                .isEqualTo(paginationHelper.includeGrandTotal(false).page(1, alwaysTrue()).grandTotal())
                .isEmpty();

        assertThat(paginationHelper.includeGrandTotal(true).page(1).grandTotal())
                .isEqualTo(paginationHelper.includeGrandTotal(true).page(1, alwaysTrue()).grandTotal())
                .contains(16L);
    }