ShardingTransactionManagerEngine { public ShardingTransactionManager getTransactionManager(final TransactionType transactionType) { ShardingTransactionManager result = transactionManagerMap.get(transactionType); if (TransactionType.LOCAL != transactionType) { Preconditions.checkNotNull(result, "Cannot find transaction manager of [%s]", transactionType); } return result; } ShardingTransactionManagerEngine(); void init(final DatabaseType databaseType, final Map<String, DataSource> dataSourceMap); ShardingTransactionManager getTransactionManager(final TransactionType transactionType); void close();  }
@Test public void assertGetEngine() { assertThat(shardingTransactionManagerEngine.getTransactionManager(TransactionType.XA), instanceOf(ShardingTransactionManagerFixture.class)); }