public Bson mapToSort(AmountRequest amountRequest) {
        List<OrderTerm> orderTerms = amountRequest.getAllOrderTerms(ALLOWED_SORT_COLUMNS.keySet());
        List<Bson> result = new ArrayList<>();
        for (OrderTerm orderTerm : orderTerms) {
            result.add(OrderTerm.Order.ASC == orderTerm.getOrder() ? ascending(orderTerm.getFieldName()) : descending(orderTerm.getFieldName()));
        }
        if (result.size() == 1) {
            return result.get(0);
        }
        return Sorts.orderBy(result);
    }
@Test
    void mapsAscOnUpdatedAtOrderCorrectly() {
        AmountRequest amountRequest = ascOnUpdatedAt(20);

        assertThat(mapper.mapToSort(amountRequest).toString()).isEqualTo("{\"updatedAt\": 1}");
    }