final FunctionContext context = new ModelElementFunctionContext( element );
final FunctionResult fr = ExpressionLanguageParser.parse( "${ This.Index }" ).evaluate( context );
try
{
final Status st = fr.status();
assertEquals( Status.Severity.ERROR, st.severity() );
assertEquals( "Cannot determine index if parent is not a list.", st.message() );
}
finally