FrameworkEvent eventReceived = fwkListener.getResult(10000);
FrameworkEvent eventReceived = fwkListener.getResult(60000);
	public void testNonFatalException() {			FrameworkEventListenerWithResult fwkListener = new FrameworkEventListenerWithResult();		OSGiTests.getContext().addFrameworkListener(fwkListener);		BundleListener npeGenerator = new BundleListener() {			public void bundleChanged(BundleEvent event) {				throw new NullPointerException("Generated exception");			}		};			OSGiTests.getContext().addBundleListener(npeGenerator);				try {			BundleTestingHelper.installBundle(OSGiTests.getContext(), OSGiTests.TEST_FILES_ROOT + "internal/plugins/installTests/bundle09");			FrameworkEvent eventReceived = fwkListener.getResult(10000);			Assert.assertEquals(FrameworkEvent.ERROR, eventReceived.getType());			Assert.assertEquals(true, eventReceived.getThrowable() instanceof NullPointerException);		} catch (MalformedURLException e) {			//Does not happen		} catch (BundleException e) {			e.printStackTrace();		} catch (IOException e) {			e.printStackTrace();		}		OSGiTests.getContext().removeFrameworkListener(fwkListener);		OSGiTests.getContext().removeBundleListener(npeGenerator);	}