@Test public void testPersonInfo() throws Exception { Person andy = (Person) getBean("andy-classic"); Person star = (Person) getBean("star-classic"); Person year = (Person) getBean("year"); andy.personInfo(); star.personInfo(); year.personInfo(); }
public void personInfo() { System.out.println("name : " + name + ", spouse : " + spouse); }
Person { public void personInfo() { System.out.println("name : " + name + ", spouse : " + spouse); } }
Person { public void personInfo() { System.out.println("name : " + name + ", spouse : " + spouse); }  }
Person { public void personInfo() { System.out.println("name : " + name + ", spouse : " + spouse); }  void personInfo(); void setName(String name); void setSpouse(Person spouse); }
Person { public void personInfo() { System.out.println("name : " + name + ", spouse : " + spouse); }  void personInfo(); void setName(String name); void setSpouse(Person spouse);  }