assertEquals(expectedIntents, effectiveIntents);
}
public void testServiceExposedAdminEvent() throws Exception {
EventAdmin ea = EasyMock.createMock(EventAdmin.class);
ea.postEvent((Event) EasyMock.anyObject());
EasyMock.expectLastCall().andAnswer(new IAnswer<Object>() {
public Object answer() throws Throwable {
Event e = (Event) EasyMock.getCurrentArguments()[0];
assertEquals("org/osgi/service/distribution/DistributionProvider/service/exposed", e.getTopic());
List<String> keys = Arrays.asList(e.getPropertyNames());