### Question:
FeedLocationStore implements ConfigurationChangeListener { @Override public void onChange(Entity oldEntity, Entity newEntity) throws FalconException { onRemove(oldEntity); onAdd(newEntity); } private  FeedLocationStore(); static FeedLocationStore get(); @Override void onAdd(Entity entity); @Override void onRemove(Entity entity); @Override void onChange(Entity oldEntity, Entity newEntity); @Override void onReload(Entity entity); Collection<FeedLookupResult.FeedProperties> reverseLookup(String path);  }### Answer:
@Test public void testOnChange() throws FalconException{ Feed f1 = createFeed("f1"); f1.getLocations().getLocations().add(createLocation(LocationType.DATA, "/projects/cas/data/hourly/2014/09/09/09")); store.publish(EntityType.FEED, f1); Feed f2 = createFeed("f1"); f2.getLocations().getLocations().add(createLocation(LocationType.DATA, "/projects/cas/data/monthly")); store.initiateUpdate(f2); store.update(EntityType.FEED, f2); store.cleanupUpdateInit(); Feed f3 = createFeed("f2"); f3.getLocations().getLocations().add(createLocation(LocationType.STATS, "/projects/cas/data/hourly/2014/09/09/09")); store.publish(EntityType.FEED, f3); }