@Test
public void testGetObject() throws Exception {

    Jta.configure(this.transactionManager, this.userTransaction);
    TransactionManager transactionManager = transactionManagerFactoryBean.getObject();
    // pre-initialization, should be null
    TargetedInvocationHandler<TransactionManager> handler =
            (TargetedInvocationHandler<TransactionManager>)Proxy.getInvocationHandler(transactionManager);
    assertNull(handler.getTarget());
    // force internal initialization
    transactionManager.getTransaction();
    assertEquals(this.transactionManager, handler.getTarget());
}