@Test
public void testAfterExecuteWorker03() throws Exception {

    Exception ex = new RuntimeException("for test.");
    when(mockJobStatusChanger.changeToEndStatus(anyString(), any(
            BLogicResult.class))).thenThrow(ex);
    BLogicResult blogicResult = new BLogicResult() {
        {
            setBlogicStatus(1);
        }
    };
    AsyncJobWorkerImpl target = new AsyncJobWorkerImpl(mockBLogicResolver,
            mockBLogicExceptionHandlerResolver, 
            mockBLogicApplicationContextResolver, 
            mockJobControlFinder, 
            mockBLogicParamConverter,
            mockBLogicExecutor, 
            mockJobStatusChanger);
    // テスト実行
    target.afterExecuteWorker("000001", blogicResult);
    verify(mockJobStatusChanger).changeToEndStatus("000001",
            blogicResult);
    assertThat(logger.getLoggingEvents(), is(asList(error(ex,
            "[EAL025025] Job status update error. jobSequenceId:000001 blogicStatus:1"))));
}