SpecificationManager { public Specification getByName(String name) { return descriptions.get(name); }  Set<Specification> getAll(); Specification getByName(String name);  }
@Test public void testGetByName() { SpecificationManager manager = new SpecificationManager(); Assert.assertNotNull(manager.getByName(SourceAdapterFactory.NAME_JSON_SOURCE_ADAPTER)); Assert.assertNotNull(manager.getByName(FilterFactory.NAME_DB_INSERTION_FILTER)); Assert.assertNotNull(manager.getByName(FilterFactory.NAME_NOTIFICATION_FILTER)); }