Object four = new Object();
BeanDefinition defFive = mock( BeanDefinition.class );
BeanDefinition defFour = new GenericBeanDefinition();
beans.put( "one", one );
beans.put( "two", new SingletonBean( two ) );
beans.put( "three", new PrimarySingletonBean( three ) );
beans.put( "four", new SingletonBean( four, defFour ) );
beans.put( "five", defFive );
Map<String, Object> singletons = beans.getSingletons();
assertEquals( 4, singletons.size() );
assertSame( one, singletons.get( "one" ) );