### Question:
Ordering implements Comparator<Object>, Serializable, XMLSerializable { public Expression getSortSpec() { if (sortSpecString == null) { return null; } if (sortSpec == null) { if (sortSpecString.startsWith(ASTDbPath.DB_PREFIX)) { sortSpec = new ASTDbPath(sortSpecString.substring(ASTDbPath.DB_PREFIX.length())); } else if (sortSpecString.startsWith(ASTObjPath.OBJ_PREFIX)) { sortSpec = new ASTObjPath(sortSpecString.substring(ASTObjPath.OBJ_PREFIX.length())); } else { sortSpec = new ASTObjPath(sortSpecString); } } return sortSpec; } Ordering();  Ordering(String sortPathSpec);  Ordering(String sortPathSpec, SortOrder sortOrder);  Ordering(Expression sortSpec);  Ordering(Expression sortSpec, SortOrder sortOrder); @SuppressWarnings("unchecked") static void orderList(List<?> objects, List<? extends Ordering> orderings); static List<E> orderedList(final Collection<E> objects, List<? extends Ordering> orderings); @Override boolean equals(Object object); @Override int hashCode(); void setSortSpecString(String sortSpecString); void setNullSortedFirst(boolean nullSortedFirst); boolean isNullSortedFirst(); void setPathExceptionSupressed(boolean pathExceptionSuppressed); boolean isPathExceptionSuppressed(); String getSortSpecString(); void setSortOrder(SortOrder order); boolean isAscending(); boolean isDescending(); void setAscending(); void setDescending(); boolean isCaseInsensitive(); boolean isCaseSensitive(); void setCaseInsensitive(); void setCaseSensitive(); Expression getSortSpec(); void setSortSpec(Expression sortSpec); void orderList(List<?> objects); List<E> orderedList(Collection<E> objects); @Override int compare(Object o1, Object o2); @Override void encodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate); @Override String toString(); SortOrder getSortOrder(); Orderings then(Ordering nextOrdering); Orderings then(Orderings nextOrderings); Orderings then(List<Ordering> nextOrderings);  }### Answer:
@Test public void testPathSpec3() { String pathSpec = "a.b.c"; Ordering ord = new Ordering(pathSpec, SortOrder.DESCENDING); assertEquals(pathSpec, ord.getSortSpec().getOperand(0)); }