@SuppressWarnings({ "rawtypes", "unchecked" })
protected void assertQuerySorting(String property, Query<?, ?> query, Comparable... items) {
AbstractQuery<?, ?> queryImpl = (AbstractQuery<?, ?>) query;
// save order property to later reverse ordering
QueryProperty orderProperty = queryImpl.getOrderProperty();
List<? extends Comparable> sortedList = Arrays.asList(items);
Collections.sort(sortedList);
List<Matcher<Object>> matchers = new ArrayList<Matcher<Object>>();