public void testNotifyListenersOnUnregistration() {
assertEquals(0, SimpleOsgiServiceRegistrationListener.REGISTERED);
assertEquals(0, SimpleOsgiServiceRegistrationListener.UNREGISTERED);
ServiceRegistration reg = exporter.notifyListeners(new Object(), new HashMap(), new MockServiceRegistration());
assertTrue(reg instanceof ServiceRegistrationDecorator);
reg.unregister();
assertEquals(1, SimpleOsgiServiceRegistrationListener.REGISTERED);
assertEquals(1, SimpleOsgiServiceRegistrationListener.UNREGISTERED);