### Question:
InfinispanRemoteCacheManagerFactoryBean extends AbstractRemoteCacheManagerFactory implements FactoryBean<RemoteCacheManager>, InitializingBean, DisposableBean { @Override public boolean isSingleton() { return true; }  @Override void afterPropertiesSet(); @Override RemoteCacheManager getObject(); @Override Class<? extends RemoteCacheManager> getObjectType(); @Override boolean isSingleton(); @Override void destroy();  }### Answer:
@Test public final void isSingletonShouldAlwaysReturnTrue() { final InfinispanRemoteCacheManagerFactoryBean objectUnderTest = new InfinispanRemoteCacheManagerFactoryBean(); assertTrue( "isSingleton() should always return true since each AbstractRemoteCacheManagerFactory will always produce " + "the same RemoteCacheManager instance. However,it returned false.", objectUnderTest.isSingleton()); }