protected void testPriority(String expr, double priority, short nodeType)
throws JaxenException, SAXPathException
{
Pattern pattern = PatternParser.parse( expr );
double d = pattern.getPriority();
short nt = pattern.getMatchType();
assertEquals( "expr: " + expr,
new Double( priority ),
new Double( d ) );