start();
DatabaseException ex = new DatabaseException("Dummy"){};
com.sleepycat.je.Transaction txn = mock(com.sleepycat.je.Transaction.class);
when(currentTransaction.beginTransaction(null)).thenReturn(txn);
runner.prepare(isA(TransactionWorker.class));
doThrow(new RuntimeExceptionWrapper(ex)).when(txn).commit();
cs.start();
try {
txn = currentTransaction.beginTransaction(null);
GlobalTransaction t = gtf.newGlobalTransaction(null, false);
cs.prepare(Collections.singletonList(new Store(TestInternalCacheEntryFactory.create("k", "v"))), t, false);