### Question:
FailoverService { public void remove(final Collection<TaskContext.MetaInfo> metaInfoList) { for (TaskContext.MetaInfo each : metaInfoList) { regCenter.remove(FailoverNode.getFailoverTaskNodePath(each.toString())); } } FailoverService(final CoordinatorRegistryCenter regCenter); void add(final TaskContext taskContext); Collection<JobContext> getAllEligibleJobContexts(); void remove(final Collection<TaskContext.MetaInfo> metaInfoList); Optional<String> getTaskId(final TaskContext.MetaInfo metaInfo); Map<String, Collection<FailoverTaskInfo>> getAllFailoverTasks();  }### Answer:
@Test public void assertRemove() { String jobNodePath1 = TaskNode.builder().type(ExecutionType.FAILOVER).build().getTaskNodePath(); String jobNodePath2 = TaskNode.builder().shardingItem(1).type(ExecutionType.FAILOVER).build().getTaskNodePath(); failoverService.remove(Arrays.asList(TaskContext.MetaInfo.from(jobNodePath1), TaskContext.MetaInfo.from(jobNodePath2))); Mockito.verify(regCenter).remove("/state/failover/test_job/" + jobNodePath1); Mockito.verify(regCenter).remove("/state/failover/test_job/" + jobNodePath2); }