// change disk journal into mock journal
Field field = TransactionManagerServices.class.getDeclaredField("journalRef");
field.setAccessible(true);
@SuppressWarnings("unchecked")
AtomicReference<Journal> journalRef = (AtomicReference<Journal>) field.get(TransactionManagerServices.class);
journalRef.set(new MockJournal());
// change connection pools into mock pools
XAPool p1 = getPool(this.poolingDataSource1);
registerPoolEventListener(p1);
XAPool p2 = getPool(this.poolingDataSource2);