UserTransactionFactoryBean implements FactoryBean<UserTransaction> { @Override public boolean isSingleton() { return true; }  @Override UserTransaction getObject(); @Override Class<UserTransaction> getObjectType(); @Override boolean isSingleton();  }
@Test public void testIsSingleton() throws Exception { assertTrue(userTransactionFactoryBean.isSingleton()); }