@Test
public void renameWithoutRemovals() {
Map<String, String> renames = new HashMap<String, String>();
renames.put( "sessionFactory", "testSessionFactory" );
ExposedBeanDefinitionTransformer transformer = new BeanRenameTransformer( renames, false );
transformer.transformBeanDefinitions( definitions );
assertEquals( 2, definitions.size() );
assertEquals( "testSessionFactory", definitions.get( "sessionFactory" ).getPreferredBeanName() );
assertEquals( "transactionManager", definitions.get( "transactionManager" ).getPreferredBeanName() );
}