@Test public void testGetDispatcher() throws Exception { ServiceReference ref = new ServiceReferenceImpl(new QName("testGetDispatcher"), new InOnlyService(), null, null); Dispatcher dispatch = _provider.createDispatcher(ref); assertEquals(dispatch, _provider.getDispatcher(ref)); }