### Question:
ProfileXMLUsageBean { @Override public String toString() { return "ProfileXMLUsageBean{" + "plainModelOne=" + plainModelOne + ", plainModelTwo=" + plainModelTwo + ", plainModelThree=" + plainModelThree + ", plainModelFour=" + plainModelFour + ", plainModelFive=" + plainModelFive + ", plainModelSix=" + plainModelSix + '}'; }  @Override String toString();  }### Answer:
@Test public void testToString() throws Exception { AnnotationConfigApplicationContext context = beanFactory.simpleConstructContainer(); context.getEnvironment().setActiveProfiles("profileDevConfig", "profileProductConfig"); context.register(ProfileXMLUsageBean.class); context.refresh(); ProfileXMLUsageBean profileXMLUsageBean = context.getBean(ProfileXMLUsageBean.class); System.out.println(PrintUtil.formatTestResult(profileXMLUsageBean)); }