@Test
public void buildsDefaultCachingConnectionFactory() throws Exception
{
factoryBean.setConnectionFactory(connectionFactoryDelegate);
CustomCachingConnectionFactory connectionFactory = factoryBean.createInstance();
assertThat(connectionFactory.getSessionCacheSize(), equalTo(CachingConnectionFactoryFactoryBean.DEFAULT_SESSION_CACHE_SIZE));
assertThat(connectionFactory.isCacheProducers(), equalTo(false));
assertThat(connectionFactory.isCacheConsumers(), equalTo(false));
assertThat(connectionFactory.getUsername(), equalTo(null));
assertThat(connectionFactory.getPassword(), equalTo(null));
}