public void testVarShadowError() throws Exception {
String source = "<aura:attribute name='other' type='String' default='huzzah'/><aura:iteration items='{!v.items}' var='v' indexVar='i'>{!i}{!v}{!v.other}|</aura:iteration>";
Map<String, Object> attributes = Maps.newHashMap();
attributes.put("items", Lists.newArrayList("q", "r", "s"));
Component iteration = getIterationComponent(source, attributes);
try {
getRenderedBaseComponent(iteration);
fail("Expected a AuraExecutionException");
} catch (Exception e) {
checkExceptionContains(e, AuraExecutionException.class, "no such property: other");