### Question:
WithoutIdBean { @Override public String toString() { return "WithoutIdBean{}"; }  @Override String toString();  }### Answer:
@Test public void testToString() throws Exception { System.out.println(PrintUtil.formatTestResult(Arrays.toString(context.getBeanDefinitionNames()))); System.out.println(PrintUtil.formatTestResult( context.getBean("org.springframework.samples.ioc.schema.alias.WithoutIdBean"))); }