}
}
private void callWithMethod(String method) throws ClassNotFoundException {
BundleContext bundleContext = mock(BundleContext.class);
Injector injector = mock(Injector.class);
Bundle bundle = mock(Bundle.class);
when(bundleContext.getBundle()).thenReturn(bundle);
doReturn(ExceptionSource.class).when(bundle).loadClass(ExceptionSource.class.getName());
JUnitProbeInvoker invoker = new JUnitProbeInvoker(ExceptionSource.class.getName() + ";"
+ method, bundleContext, injector);