@Test
public void testGetObject() throws Exception {

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