### Question:
InfinispanEmbeddedCacheManagerFactoryBean extends AbstractEmbeddedCacheManagerFactory implements FactoryBean<EmbeddedCacheManager>, InitializingBean, DisposableBean { @Override public boolean isSingleton() { return true; }  @Override void afterPropertiesSet(); @Override EmbeddedCacheManager getObject(); @Override Class<? extends EmbeddedCacheManager> getObjectType(); @Override boolean isSingleton(); @Override void destroy();  }### Answer:
@Test public final void infinispanEmbeddedCacheManagerFactoryBeanShouldDeclareItselfToOnlyProduceSingletons() { final InfinispanEmbeddedCacheManagerFactoryBean objectUnderTest = new InfinispanEmbeddedCacheManagerFactoryBean(); assertTrue("isSingleton() should always return true. However, it returned false", objectUnderTest.isSingleton()); }