@Test
public void testBeforeExecute03() throws Exception {

    @SuppressWarnings("serial")
    Exception ex = new DataAccessException("dummy exception") {};
    when(mockJobStatusChanger.changeToStartStatus(anyString())).thenThrow(
            ex);
    AsyncJobWorkerImpl target = new AsyncJobWorkerImpl(mockBLogicResolver,
            mockBLogicExceptionHandlerResolver, 
            mockBLogicApplicationContextResolver, 
            mockJobControlFinder, 
            mockBLogicParamConverter, 
            mockBLogicExecutor, 
            mockJobStatusChanger);
    // テスト実行
    try {
        target.beforeExecute("0000001");
        fail("The exception has not been detected.");
    } catch (DataAccessException dae) {
        assertSame(ex, dae);
        verify(mockJobStatusChanger).changeToStartStatus("0000001");
    }
}