### Question:
ReconTaskControllerImpl implements ReconTaskController { @Override public void registerTask(ReconOmTask task) { String taskName = task.getTaskName(); LOG.info("Registered task {} with controller.", taskName); reconOmTasks.put(taskName, task); taskFailureCounter.put(taskName, new AtomicInteger(0)); ReconTaskStatus reconTaskStatusRecord = new ReconTaskStatus(taskName, 0L, 0L); if (!reconTaskStatusDao.existsById(taskName)) { reconTaskStatusDao.insert(reconTaskStatusRecord); } } @Inject  ReconTaskControllerImpl(OzoneConfiguration configuration,
                                 ReconTaskStatusDao reconTaskStatusDao,
                                 Set<ReconOmTask> tasks); @Override void registerTask(ReconOmTask task); @Override synchronized void consumeOMEvents(OMUpdateEventBatch events,
                              OMMetadataManager omMetadataManager); @Override synchronized void reInitializeTasks(
      ReconOMMetadataManager omMetadataManager); @Override Map<String, ReconOmTask> getRegisteredTasks(); @Override ReconTaskStatusDao getReconTaskStatusDao(); @Override synchronized void start(); @Override synchronized void stop();  }### Answer:
@Test public void testRegisterTask() { String taskName = "Dummy_" + System.currentTimeMillis(); DummyReconDBTask dummyReconDBTask = new DummyReconDBTask(taskName, DummyReconDBTask.TaskType.ALWAYS_PASS); reconTaskController.registerTask(dummyReconDBTask); assertTrue(reconTaskController.getRegisteredTasks().size() == 1); assertTrue(reconTaskController.getRegisteredTasks() .get(dummyReconDBTask.getTaskName()) == dummyReconDBTask); }