@Test
public void testExecutePriorTransactionOperations() {

    for (int i = 0; i < 100; i++) {
        transactionContextWrapper.maybeExecuteTransactionOperation(mock(TransactionOperation.class));
    }
    assertEquals(901, transactionContextWrapper.getLimiter().availablePermits());
    transactionContextWrapper.executePriorTransactionOperations(transactionContext);
    assertEquals(1001, transactionContextWrapper.getLimiter().availablePermits());
}