expected.add(new QName(rimNamespace, "Classification"));
expected.add(new QName(rimNamespace, "Association"));
assertEquals(expected, query.getTypeNames());
// the element set name
ElementSetNameType esn = query.getElementSetName();
expected.clear();
expected.add(new QName(rimNamespace, "Service"));
assertEquals(expected, esn.getTypeNames());
assertEquals(ElementSetType.BRIEF, esn.getValue());
// the sort by properties
SortBy[] sorts = query.getSortBy();
assertEquals(2, sorts.length);
assertEquals("rim:foo", sorts[0].getPropertyName().getPropertyName());