GovernanceBootstrapInitializer extends AbstractBootstrapInitializer { @Override protected TransactionContexts decorateTransactionContexts(final TransactionContexts transactionContexts) { return new GovernanceTransactionContexts(transactionContexts); }    }
@Test public void assertDecorateTransactionContexts() { TransactionContexts transactionContexts = mock(TransactionContexts.class); TransactionContexts actualTransactionContexts = getInitializer().decorateTransactionContexts(transactionContexts); assertNotNull(actualTransactionContexts); assertThat(actualTransactionContexts, instanceOf(GovernanceTransactionContexts.class)); assertThat(actualTransactionContexts.getEngines(), is(transactionContexts.getEngines())); assertThat(actualTransactionContexts.getDefaultTransactionManagerEngine(), is(transactionContexts.getDefaultTransactionManagerEngine())); }