ReactiveMongoHelper { @NonNull public <T> Mono<Page<T>> getAllWithDescSortByPagination(int page, int size, @NonNull String properties, @NonNull Class<T> entityClass) { return doFind(page, size, null, entityClass, Sort.Direction.DESC, properties); } @Autowired  ReactiveMongoHelper(ReactiveMongoTemplate reactiveMongoTemplate); @NonNull Mono<Page<T>> getAllWithCriteriaByPagination(int page, int size, @NonNull Map<String, Object> criteriaMap, @NonNull Class<T> entityClass); @NonNull Mono<Page<T>> getAllWithCriteriaAndDescSortByPagination(int page, int size,
                                                                       @NonNull String properties,
                                                                       @NonNull Map<String, Object> criteriaMap,
                                                                       @NonNull Class<T> entityClass); @NonNull Mono<Page<T>> getAllByPagination(int page, int size, @NonNull Class<T> entityClass); @NonNull Mono<Page<T>> getAllWithDescSortByPagination(int page, int size, @NonNull String properties, @NonNull Class<T> entityClass); @NonNull Page<T> getPage(@NonNull Pageable pageable, @NonNull List<T> content, long total); @NonNull Flux<T> find(@NonNull Query query, @NonNull Class<T> entityClass); @NonNull Mono<T> findOne(@NonNull Query query, @NonNull Class<T> entityClass); @NonNull Mono<T> findOneFieldsByQuery(@NonNull final Map<String, Object> queryMap, @NonNull Class<T> entityClass, String... fields); @NonNull Flux<T> findFieldsByQuery(@NonNull final Map<String, Object> queryMap, @NonNull Class<T> entityClass, String... fields); @NonNull Flux<T> findFieldsByQuery(@NonNull final String queryKey, @NonNull final Object queryValue, @NonNull Class<T> entityClass, String... fields);  }
@Test public void getAllWithDescSortByPagination() { }