@Test
public void testGetObject_SpringTransactionManager() throws Exception {

    Jta.configure(transactionManager, userTransaction);
    SimpleConfig config = new SimpleConfig();
    config.putObject(RiceConstants.SPRING_TRANSACTION_MANAGER, new JtaTransactionManager());
    ConfigContext.init(config);
    // since a spring configuration transaction manager has been configured, getObject will always return null, even
    // though we have JTA setup (i'm suppose it's questionable that it should be doing this, but that's how it's
    // always worked
    assertNull(transactionManagerFactoryBean.getObject());
}