### Question:
ProfileAnnotationUsageBean { @Override public String toString() { return "ProfileAnnotationUsageBean{" + "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.scan("org.springframework.samples.ioc.annotation.environment.profile"); context.refresh(); ProfileAnnotationUsageBean profileAnnotationUsageBean = context.getBean(ProfileAnnotationUsageBean.class); System.out.println(PrintUtil.formatTestResult(profileAnnotationUsageBean)); }