@Test
public void testIndividual() throws Exception {
sut.registerContext("name", client, new HashMap<String, Object>());
sut.registerContext("otherName", otherClient, new HashMap<String, Object>());
sut.bundleChanged(new BundleEvent(BundleEvent.STOPPING, client));
assertEquals(1, getManagers().size());
assertNull(getContexts().get(client));
assertNotNull(getContexts().get(otherClient));
sut.bundleChanged(new BundleEvent(BundleEvent.STOPPING, otherClient));
assertEquals(1, getManagers().size());
assertNull(getContexts().get(client));
assertNull(getContexts().get(otherClient));
sut.bundleChanged(new BundleEvent(BundleEvent.STOPPING, framework));
assertTrue(getManagers().isEmpty());
}