Dispatcher { protected Object getObject(String key) { return services.get(key); } protected  Dispatcher(Bridge bridge); Reference storeRandomObject(Object object);  }
@Test public void testgetObject() { BridgeObject s = (BridgeObject) dispatcher.getObject("s1"); assertSame(bridgeObject, s); BridgeObject nonExistent = (BridgeObject) dispatcher .getObject("does not exist"); assertNull(nonExistent); }