@Override
    public void cleanHistoryConfig() {
        Timestamp startTime = getBeforeStamp(TimeUtils.getCurrentTime(), 24 * getRetentionDays());
        int pageSize = 1000;
        LOGGER.warn("clearConfigHistory, getBeforeStamp:{}, pageSize:{}", startTime, pageSize);
        getHistoryConfigInfoPersistService().removeConfigHistory(startTime, pageSize);
    }
@Test
    public void testCleanHistoryConfig() throws Exception {
        defaultHistoryConfigCleaner.cleanHistoryConfig();
        Mockito.verify(historyConfigInfoPersistService, Mockito.times(1))
                .removeConfigHistory(any(Timestamp.class), anyInt());
    }