@Test
public void testChangeToEndStatus05() {

    // テスト入力データ設定
    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_PROCESSED);
                }
            });
    // テスト実行
    // 結果検証
    assertFalse(jobStatusChanger.changeToEndStatus("00000001",
            blogicResult));
    assertThat(logger.getLoggingEvents(), is(asList(debug(
            "[DAL025055] This job status at the job control table is already updated by another worker. It will be skip. jobSequenceId:00000001 expectedCurAppStatus:1 actualCurAppStatus:2 changeTo:2"),
            info("[IAL025023] Skipped processing of updating the job status. This transaction will be attempt to roll-back. jobSequenceId:00000001"))));
    verify(mockPlatformTransactionManager).rollback(mockTran);
}