public void testWithModelElementList()
{
final TestModelRoot root = TestModelRoot.TYPE.instantiate();
final ElementList<TestModelElementA> list = root.getList1();
final FunctionContext context = new ModelElementFunctionContext( root );
TestModelElementA a;
testForExpectedValue( context, "${ Avg( List1 ) }", new BigDecimal( "0" ) );
testForExpectedValue( context, "${ Avg( List1, 'Value1' ) }", new BigDecimal( "0" ) );