@Test
public void testParseSortQueryParameter() {

  Set<SortCriterionImpl> sortOrders = new HashSet<SortCriterionImpl>();
  sortOrders.add(new SortCriterionImpl("name", Order.Descending));
  assertTrue(RestUtils.parseSortQueryParameter("name:DESC").equals(sortOrders));
  sortOrders.add(new SortCriterionImpl("date", Order.Ascending));
  assertTrue(RestUtils.parseSortQueryParameter("name:DESC,date:ASC").equals(sortOrders));
}