@SuppressWarnings({"rawtypes", "unchecked"})

@Test
public void testDelayCollect004() {
    
    Queueing1NRelationResultHandlerImpl drh = new Queueing1NRelationResultHandlerImpl();
    drh.prevRow = new TestBean001();
    DaoCollector<HogeBean> daoCollector = new DaoCollectorStub002();
    ((DaoCollectorStub002) daoCollector).exceptionFlag = false;
    drh.setDaoCollector(daoCollector);
    assertNotNull(drh);
    try {
        DummyResultContext context = new DummyResultContext();
        context.setResultObject(HogeBean.buider().hoge("hoge1").build());
        drh.handleResult(context);
        context.setResultObject(HogeBean.buider().hoge("hoge2").build());
        drh.handleResult(context);
        drh.delayCollect();
        fail("失敗");
    } catch (SystemException e) {
        assertNotNull(e);
        assertEquals(SystemException.class, e.getClass());
        assertNotNull(e.getCause());
        assertEquals(InvocationTargetException.class, e.getCause()
                .getClass());
    }
}