### Question:
JobRunningStatisticJob extends AbstractStatisticJob { @Override public Map<String, Object> getDataMap() { Map<String, Object> result = new HashMap<>(2); result.put("runningService", runningService); result.put("repository", repository); return result; } JobRunningStatisticJob(final CoordinatorRegistryCenter registryCenter, final StatisticRdbRepository rdbRepository); @Override JobDetail buildJobDetail(); @Override Trigger buildTrigger(); @Override Map<String, Object> getDataMap(); @Override void execute(final JobExecutionContext context);  }### Answer:
@Test public void assertGetDataMap() throws SchedulerException { Assert.assertThat((RunningService) jobRunningStatisticJob.getDataMap().get("runningService"), Is.is(runningService)); Assert.assertThat((StatisticRdbRepository) jobRunningStatisticJob.getDataMap().get("repository"), Is.is(repository)); }
@Test public void assertGetDataMap() { assertThat(jobRunningStatisticJob.getDataMap().get("runningService"), is(runningService)); assertThat(jobRunningStatisticJob.getDataMap().get("repository"), is(repository)); }