@Bean
 public LifecycleBean lifecycleBean() {
   // The following call to enigma() literally invokes the local
   // enigma() method, not a CGLIB proxied version, since these methods
   // are essentially factory bean methods.
   LifecycleBean bean = new LifecycleBean(enigma());
   assertFalse(bean.isInitialized());
   return bean;
 }
 @Test
 public void testSPR_9051() throws Exception {
   assertNotNull(enigma);
   assertNotNull(lifecycleBean);
   assertTrue(lifecycleBean.isInitialized());
   Set<String> names = new HashSet<String>();
   names.add(enigma.toString());
   names.add(lifecycleBean.getName());
   assertEquals(names, new HashSet<String>(Arrays.asList("enigma #1", "enigma #2")));
 }