question: public void testSortsAccordingNumberOfAttributes ( ) throws Exception { XppDom dom1 = XppFactory . buildDom ( "<dom/>" ) ; XppDom dom2 = XppFactory . buildDom ( "<dom a='1'/>" ) ; assertEquals ( - 1 , comparator . compare ( dom1 , dom2 ) ) ; assertEquals ( "/dom::count(@*)" , xpath . get ( ) ) ; assertEquals ( 1 , comparator . compare ( dom2 , dom1 ) ) ; assertEquals ( "/dom::count(@*)" , xpath . get ( ) ) ; }
target:  Tests comparison of different number of attributes.