### Question:
FeedLocationStore implements ConfigurationChangeListener { public static FeedLocationStore get(){ return instance; } 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 testOnAddSameLocation() throws FalconException{ Feed f1 = createFeed("f1SameLocations"); int initialSize = FeedLocationStore.get().store.getSize(); f1.getLocations().getLocations().add(createLocation(LocationType.DATA, "/projects/cas/data/hourly/2014/09/09/09")); f1.getLocations().getLocations().add(createLocation(LocationType.STATS, "/projects/cas/stats/hourly/2014/09/09/09")); Feed f2 = createFeed("f2SameLocations"); f2.getLocations().getLocations().add(createLocation(LocationType.STATS, "/projects/cas/data/hourly/2014/09/09/09")); f2.getLocations().getLocations().add(createLocation(LocationType.DATA, "/projects/cas/stats/hourly/2014/09/09/09")); store.publish(EntityType.FEED, f1); store.publish(EntityType.FEED, f2); int finalSize = FeedLocationStore.get().store.getSize(); Assert.assertEquals(finalSize - initialSize, 8); }
@Test public void testWithClusterLocations() throws FalconException { Feed f = createFeedWithClusterLocations("clusterFeed"); int initialSize = FeedLocationStore.get().store.getSize(); store.publish(EntityType.FEED, f); Assert.assertEquals(FeedLocationStore.get().store.getSize() - initialSize, 6); store.remove(EntityType.FEED, "clusterFeed"); Assert.assertEquals(FeedLocationStore.get().store.getSize(), initialSize); }
@Test public void testFindWithRegularExpression() throws FalconException { Feed f = createFeed("findUsingRegexFeed"); f.getLocations().getLocations().add(createLocation(LocationType.DATA, "/falcon/test/input/${YEAR}/${MONTH}/${DAY}/${HOUR}")); store.publish(EntityType.FEED, f); Assert.assertNotNull(FeedLocationStore.get().store.find("/falcon/test/input/2014/12/12/23", new FalconRadixUtils.FeedRegexAlgorithm())); }