@Test
public void testChangeToEndStatus01() {

    // テスト入力データ設定
    BLogicResult blogicResult = new BLogicResult();
    TransactionStatus mockTran = mock(TransactionStatus.class);
    when(mockPlatformTransactionManager.getTransaction(any(
            DefaultTransactionDefinition.class))).thenReturn(mockTran);
    when(mockSystemDao.selectJob(any(BatchJobManagementParam.class)))
            .thenReturn(new BatchJobData() {
                {
                    setJobSequenceId("00000001");
                    setCurAppStatus(
                            JobStatusConstants.JOB_STATUS_EXECUTING);
                }
            });
    when(mockSystemDao.updateJobTable(any(
            BatchJobManagementUpdateParam.class))).thenReturn(1);
    when(mockTran.isCompleted()).thenReturn(true);
    // テスト実行
    // 結果検証
    assertTrue(jobStatusChanger.changeToEndStatus("00000001",
            blogicResult));
    assertThat(logger.getLoggingEvents(), is(asList(debug(
            "[DAL025023] Try to update status jobSequenceId:00000001 changeStatus:2"))));
    verify(mockPlatformTransactionManager).commit(mockTran);
    verify(mockPlatformTransactionManager, never()).rollback(mockTran);
}