UserTransactionFactoryBean implements FactoryBean<UserTransaction> { @Override public Class<UserTransaction> getObjectType() { return UserTransaction.class; }  @Override UserTransaction getObject(); @Override Class<UserTransaction> getObjectType(); @Override boolean isSingleton();  }
@Test public void testGetObjectType() throws Exception { assertEquals(UserTransaction.class, userTransactionFactoryBean.getObjectType()); }