ex = new AttributeExpressionImpl("eg:complexAttribute/eg:rootAttribute[1]", new Hints(
FeaturePropertyAccessorFactory.NAMESPACE_CONTEXT, NAMESPACES));
assertEquals(rootOne, ex.evaluate(feature));
ex = new AttributeExpressionImpl("eg:complexAttribute/eg:rootAttribute[2]", new Hints(
FeaturePropertyAccessorFactory.NAMESPACE_CONTEXT, NAMESPACES));
assertEquals(rootTwo, ex.evaluate(feature));
// single valued nested property
ex = new AttributeExpressionImpl(
"eg:complexAttribute/eg:rootAttribute[3]/eg:singleLeafAttribute", new Hints(
FeaturePropertyAccessorFactory.NAMESPACE_CONTEXT, NAMESPACES));