assertEquals("toto", ((MapEntry)child.get("toto")).getName());
assertEquals("bar", ((MapEntry)child.get("foo")).getValue());
}
public void test03Hierarchy() {
SyntheticMap child = new SyntheticMap();
MapEntry me = new MapEntry("toto");
me.setValue("titi");
me.setType("tata");
child.put("toto",me);
SyntheticMap parent = new SyntheticMap();
me = new MapEntry("titi");
me.setValue("null");
me.setType("titi");
parent.put("titi",me);
child.addInherits(parent);
SyntheticMap parent2 = new SyntheticMap();
me = new MapEntry("foo");
me.setValue("bar");
me.setType("baz");
parent2.put("foo",me);
parent.addInherits(parent2);
assertEquals("toto", ((MapEntry)child.get("toto")).getName());
assertEquals("bar", ((MapEntry)child.get("foo")).getValue());
}