/**
* <p>Test adding a specifically named {@link Catalog} instance.</p>
*/
public void testSpecificCatalog() {
Catalog catalog = new CatalogBase();
factory.setCatalog(catalog);
catalog = new CatalogBase();
factory.addCatalog("foo", catalog);
assertTrue(catalog == factory.getCatalog("foo"));
assertEquals(1, getCatalogCount());
factory.addCatalog("foo", new CatalogBase());
assertEquals(1, getCatalogCount());
assertTrue(!(catalog == factory.getCatalog("foo")));
CatalogFactory.clear();
factory = CatalogFactory.getInstance();
assertEquals(0, getCatalogCount());