@Override
    public MongoPaginationHelper<T> filter(Bson filter) {
        return new DefaultMongoPaginationHelper<>(collection, filter, sort, perPage, includeGrandTotal,
                grandTotalFilter, collation);
    }
@Test
    void testFilter() {
        final Bson filter = Filters.in("name", "A", "B", "C");
        final PaginatedList<DTO> filterdPage = paginationHelper.filter(filter).page(1);
        assertThat(filterdPage)
                .isEqualTo(paginationHelper.filter(filter).page(1, alwaysTrue()))
                .containsExactlyElementsOf(DTOs.subList(0, 3));

        assertThat(filterdPage.pagination()).satisfies(pagination -> {
            assertThat(pagination.total()).isEqualTo(3);
            assertThat(pagination.page()).isEqualTo(1);
            assertThat(pagination.perPage()).isEqualTo(0);
        });
    }