@Test
public void testExecutorType() {
SqlSessionTemplate template = new SqlSessionTemplate(sqlSessionFactory, ExecutorType.BATCH);
assertEquals(ExecutorType.BATCH, template.getExecutorType());
DataSourceTransactionManager manager = new DataSourceTransactionManager(dataSource);
TransactionStatus status = null;
try {
status = manager.getTransaction(new DefaultTransactionDefinition());
// will synchronize the template with the current tx
template.getConnection();
SqlSessionHolder holder = (SqlSessionHolder) TransactionSynchronizationManager