// Public --------------------------------------------------------
public void testSimpleConnectorManager() throws Exception
{
SimpleConnectorManager cm = new SimpleConnectorManager();
cm.registerConnector("connector1");
assertEquals(1, cm.getCount("connector1"));
assertTrue(cm.containsConnector("connector1"));
cm.registerConnector("connector2");
assertEquals(1, cm.getCount("connector2"));
assertTrue(cm.containsConnector("connector2"));
cm.registerConnector("connector1");
assertEquals(2, cm.getCount("connector1"));
assertTrue(cm.containsConnector("connector1"));
cm.unregisterConnector("connector2");
assertEquals(0, cm.getCount("connector2"));
assertFalse(cm.containsConnector("connector2"));
cm.unregisterConnector("connector1");
assertEquals(1, cm.getCount("connector1"));
assertTrue(cm.containsConnector("connector1"));
cm.unregisterConnector("connector1");
assertEquals(0, cm.getCount("connector1"));
assertFalse(cm.containsConnector("connector1"));
}