Statement s = conn.createStatement();
s.executeUpdate("CREATE TABLE Derby1016 (I INT)");
xar.end(xid, XAResource.TMSUCCESS);
xar.prepare(xid);
try {
xar.forget(xid);
fail("FAIL: prepared XA-Transaction forgotten");
} catch (XAException XAeForget) {
assertEquals("FAIL: Got unexpected exception "
+ XAeForget.getMessage() + " errorCode: "
+ XAeForget.errorCode + " calling forget on a prepared transaction",