public TaskRunHistory getTaskRunHistory() {
        return taskRunManager.getTaskRunHistory();
    }
@Test
    public void testForceGC2() {
        TaskRunManager taskRunManager = new TaskRunManager();
        for (int i = 0; i < 10; i++) {
            TaskRunStatus taskRunStatus = new TaskRunStatus();
            taskRunStatus.setQueryId("test" + i);
            taskRunStatus.setTaskName("test" + i);
            taskRunManager.getTaskRunHistory().addHistory(taskRunStatus);
        }
        Config.task_runs_max_history_number = 20;
        taskRunManager.getTaskRunHistory().forceGC();
        Assert.assertEquals(10, taskRunManager.getTaskRunHistory().getInMemoryHistory().size());
        Config.task_runs_max_history_number = 10000;
    }