public void testImportBasicReference() throws Exception
{
String resource = "src/test/resources/com/dyuproject/ioc/test/import_basic_reference.json";
ApplicationContext ac = ApplicationContext.load(resource);
Person person = (Person)ac.findPojo("person");
Person person1 = (Person)ac.findPojo("person1");
Person person2 = (Person)ac.findPojo("person2");
Person person3 = (Person)ac.findPojo("person3");
Person person4 = (Person)ac.findPojo("person4");
assertTrue(person!=null);
assertTrue(person1!=null);
assertTrue(person2!=null);
assertTrue(person3!=null);
assertTrue(person4!=null);
assertTrue(person2==person3);
assertTrue(20==person.getAge());
assertTrue(21==person1.getAge());
assertTrue(23==person3.getAge());
assertTrue(24==person4.getAge());
}