### Question:
TaskResultStatisticJob extends AbstractStatisticJob { @Override public Map<String, Object> getDataMap() { Map<String, Object> result = new HashMap<>(3); result.put("statisticInterval", statisticInterval); result.put("sharedData", sharedData); result.put("repository", repository); return result; }  @Override JobDetail buildJobDetail(); @Override Trigger buildTrigger(); @Override Map<String, Object> getDataMap(); @Override void execute(final JobExecutionContext context);  }### Answer:
@Test public void assertGetDataMap() throws SchedulerException { assertThat((StatisticInterval) taskResultStatisticJob.getDataMap().get("statisticInterval"), is(statisticInterval)); assertThat((TaskResultMetaData) taskResultStatisticJob.getDataMap().get("sharedData"), is(sharedData)); assertThat((StatisticRdbRepository) taskResultStatisticJob.getDataMap().get("repository"), is(repository)); }
@Test public void assertGetDataMap() { assertThat(taskResultStatisticJob.getDataMap().get("statisticInterval"), is(statisticInterval)); assertThat(taskResultStatisticJob.getDataMap().get("sharedData"), is(sharedData)); assertThat(taskResultStatisticJob.getDataMap().get("repository"), is(repository)); }