### Question:
BeanNameAwareBean implements BeanNameAware { @Override public String toString() { return "BeanNameAwareBean{" + "name='" + name + '\'' + '}'; }  @Override void setBeanName(String name); @Override String toString();  }### Answer:
@Test public void testToString() throws Exception { BeanNameAwareBean beanNameAwareBean = getBean(BeanNameAwareBean.class); System.out.println(PrintUtil.formatTestResult(beanNameAwareBean)); }