### Question:
HousekeepingCleanupLocationManager implements CleanupLocationManager { @Override public void scheduleLocations() throws CircusTrainException { try { List<URI> uris = new ArrayList<>(); for (CleanupLocation location : locations) { LOG.info("Scheduling old replica data for deletion for event {}: {}", eventId, location.path.toUri()); housekeepingListener .cleanUpLocation(eventId, location.pathEventId, location.path, location.replicaDatabase, location.replicaTable); uris.add(location.path.toUri()); } replicaCatalogListener.deprecatedReplicaLocations(uris); } finally { locations.clear(); } } HousekeepingCleanupLocationManager(
      String eventId,
      HousekeepingListener housekeepingListener,
      ReplicaCatalogListener replicaCatalogListener,
      String replicaDatabase,
      String replicaTable); @Override void scheduleLocations(); @Override void addCleanupLocation(String pathEventId, Path location);  }### Answer:
@Test public void scheduleLocations() throws Exception { HousekeepingCleanupLocationManager manager = new HousekeepingCleanupLocationManager(EVENT_ID, housekeepingListener, replicaCatalogListener, DATABASE, TABLE); String pathEventId = "pathEventId"; Path path = new Path("location1"); manager.addCleanupLocation(pathEventId, path); manager.scheduleLocations(); verify(housekeepingListener).cleanUpLocation(EVENT_ID, pathEventId, path, DATABASE, TABLE); List<URI> uris = Lists.newArrayList(path.toUri()); verify(replicaCatalogListener).deprecatedReplicaLocations(uris); }