@Test
public void testQueryAttributeExpression()
{
QueryResult<ImmutableNode> attrResult =
QueryResult.createAttributeResult(root, "attr");
JXPathContext ctx = expectSelect(attrResult);
XPathExpressionEngine engine = setUpEngine(ctx);
List<QueryResult<ImmutableNode>> result =
engine.query(root, TEST_KEY, handler);
assertEquals("Incorrect number of results", 1, result.size());
assertSame("Wrong result", attrResult, result.get(0));