return FrameworkUtil.createFilter((String) EasyMock.getCurrentArguments()[0]);
}
}).anyTimes();
EasyMock.replay(bc);
Activator a = new Activator();
a.start(bc);
assertNotNull(a.localDiscovery);
a.localDiscovery = EasyMock.createMock(LocalDiscovery.class);
a.localDiscovery.shutDown();
EasyMock.expectLastCall();
EasyMock.replay(a.localDiscovery);
a.stop(bc);
EasyMock.verify(a.localDiscovery);
}