### Question:
InitAndDestroyMethodViaXmlBean { @Override public String toString() { return "InitAndDestroyMethodViaXmlBean{" + "string='" + string + '\'' + ", plainModelOne=" + plainModelOne + ", plainModelTwo=" + plainModelTwo + '}'; } @SuppressWarnings("unused")  InitAndDestroyMethodViaXmlBean(); @SuppressWarnings("unused")  InitAndDestroyMethodViaXmlBean(PlainModelOne plainModelOne); void init(); void destroy(); void setString(String string); @Override String toString(); void setPlainModelTwo(PlainModelTwo plainModelTwo);  }### Answer:
@Test public void testToString() throws Exception { InitAndDestroyMethodViaXmlBean initAndDestroyMethodViaXmlBean = getBean( "initAndDestroyMethodViaXmlBeanSingleton", InitAndDestroyMethodViaXmlBean.class); System.out.println(initAndDestroyMethodViaXmlBean); System.out.println("========================================================================================="); InitAndDestroyMethodViaXmlBean bean = getBean( "initAndDestroyMethodViaXmlBeanPrototype", InitAndDestroyMethodViaXmlBean.class); System.out.println(bean); }