expectedValues[0] = new Integer(ResultSet.HOLD_CURSORS_OVER_COMMIT);
expectedValues[3] = new Boolean(true);
assertConnectionOK(expectedValues,
"Switch to local XADataSource", xac.getConnection());
//Check if got connection closed event but not connection error event
assertTrue(aes5.didConnectionClosedEventHappen());
assertFalse(aes5.didConnectionErrorEventHappen());
aes5.resetState();
assertConnectionOK(expectedValues,
"Switch to local XADataSource", xac.getConnection());
//Check if got connection closed event but not connection error event