@Test
void should_ThrowError_When_MapContainsOrderByButNoSortBy() {

  MultiValueMap<String, String> map = new LinkedMultiValueMap<>();
  map.put(QueryHelper.ORDER_DIRECTION, Collections.singletonList("desc"));
  assertThatThrownBy(() -> applyAndRemoveSortingParams(map, mock(MockBiConsumer.class)))
      .isInstanceOf(InvalidArgumentException.class);
}