XAShardingTransactionManager implements ShardingTransactionManager { @Override public TransactionType getTransactionType() { return TransactionType.XA; }  @Override void init(final DatabaseType databaseType, final Collection<ResourceDataSource> resourceDataSources); @Override TransactionType getTransactionType(); @SneakyThrows(SystemException.class) @Override boolean isInTransaction(); @Override Connection getConnection(final String dataSourceName); @SneakyThrows({SystemException.class, NotSupportedException.class}) @Override void begin(); @SneakyThrows({SystemException.class, RollbackException.class, HeuristicMixedException.class, HeuristicRollbackException.class}) @Override void commit(); @SneakyThrows(SystemException.class) @Override void rollback(); @Override void close();  }
@Test public void assertGetTransactionType() { assertThat(xaShardingTransactionManager.getTransactionType(), is(TransactionType.XA)); }