public void testIndexer() {
    assertEquals("foobar",
        testCompiledSimple("import java.util.LinkedHashMap; LinkedHashMap map = new LinkedHashMap();"
            + " map.put('a', 'foo'); map.put('b', 'bar'); s = ''; " +
            "foreach (key : map.keySet()) { System.out.println(map[key]); s += map[key]; }; return s;",
            createTestMap()));
  }