@Test
public void setDaoCollectorPrePostProcess() {

    Object queryResultHandleDao = new Object();
    String methodName = "hoge";
    Object bindParams = new Object();
    DaoCollectorConfig config = new DaoCollectorConfig(queryResultHandleDao, methodName, bindParams);
    DaoCollectorPrePostProcess daoCollectorPrePostProcess = new DaoCollectorPrePostProcess() {
        public <P> void postprocessComplete(DaoCollector<P> collector) {
        }
        public <P> DaoCollectorPrePostProcessStatus postprocessException(
                DaoCollector<P> collector, Throwable throwable) {
            return null;
        }
        public <P> void preprocess(DaoCollector<P> collector) {
        }
    };
    config.setDaoCollectorPrePostProcess(daoCollectorPrePostProcess);
    DaoCollectorPrePostProcess daoCollectorPrePostProcess2 = new DaoCollectorPrePostProcess() {
        public <P> void postprocessComplete(DaoCollector<P> collector) {
        }
        public <P> DaoCollectorPrePostProcessStatus postprocessException(
                DaoCollector<P> collector, Throwable throwable) {
            return null;
        }
        public <P> void preprocess(DaoCollector<P> collector) {
        }
    };
    // テスト
    config.setDaoCollectorPrePostProcess(daoCollectorPrePostProcess2);
    assertNotNull(config.getDaoCollectorPrePostProcess());
    assertEquals(daoCollectorPrePostProcess2, config
            .getDaoCollectorPrePostProcess());
}