### Question:
Person { public void personInfo() { System.out.println("name : " + name + ", spouse : " + spouse); }  void personInfo(); void setName(String name); void setSpouse(Person spouse);  }### Answer:
@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(); }