@Test
void should_CallConsumerMultipleTimes_When_MapContainsMultipleSortBy() throws Exception {

  MultiValueMap<String, String> map = new LinkedMultiValueMap<>();
  map.put(QueryHelper.SORT_BY, Arrays.asList("sort-by-value1", "sort-by-value2"));
  MockBiConsumer consumer = mock(MockBiConsumer.class);
  applyAndRemoveSortingParams(map, consumer);
  InOrder inOrder = inOrder(consumer);
  inOrder.verify(consumer).accept(eq("sort-by-value1"), any());
  inOrder.verify(consumer).accept(eq("sort-by-value2"), any());
  verifyNoMoreInteractions(consumer);
}