@Test
public void testEndTransactions01() throws Exception {

    // テスト入力データ設定
    Map<String, PlatformTransactionManager> tranMap = new HashMap<String, PlatformTransactionManager>();
    PlatformTransactionManager tran = new PlatformTransactionManagerStub();
    tranMap.put("tran", tran);
    Map<String, TransactionStatus> statMap = new HashMap<String, TransactionStatus>();
    statMap.put("tran", new TransactionStatusStub());
    // テスト実施
    boolean result = false;
    try {
        result = BatchUtil.endTransactions(tranMap, statMap);
    } catch (Exception e) {
        e.printStackTrace();
        fail();
        return;
    }
    // 結果検証
    assertTrue(result);
}