assertEquals("xxx", f.getEnemies()[0].getName());
}
@Test
public void test_map() {
Animal f = A("map : {asia:34, europe: 45}");
assertEquals(34, f.getMap().get("asia").intValue());
assertEquals(45, f.getMap().get("europe").intValue());
f = A("relations: {a: {type:'org.nutz.ioc.json.pojo.Animal', fields: {name:'AAA'}}"
+ ",b: {type:'org.nutz.ioc.json.pojo.Animal', fields: {name:'BBB'}}}");
assertEquals(2, f.getRelations().size());
assertEquals("AAA", f.getRelations().get("a").getName());
assertEquals("BBB", f.getRelations().get("b").getName());
}