public void testIntentsRef2() throws Exception {
InputSource xml = new InputSource(getClass().getResourceAsStream("Calculator.composite"));
String str = " //sca:composite/sca:component[sca:IntentRefs('sca:confidentiality')]";
str = normalize(str, "sca");
// Test the rewrite of xpath so that the self:node() is passed into the SCA function
XPathExpression exp = xpath.compile(str);
Object result = exp.evaluate(xml, XPathConstants.NODESET);
Assert.assertTrue(result instanceof NodeList);
NodeList nodes = (NodeList)result;
Assert.assertEquals(1, nodes.getLength());
}