public void cancel() {
   final Method invoke =
       ReflectionUtils.getMethod(
           providerInOtherClassLoader.getClass(), "cancel", new Class[] {});
   ReflectionUtils.invokeMethodWithArray(providerInOtherClassLoader, invoke, null);
 }
 void setTestClassLoader(Object o, ClassLoader testClassLoader) {
   Method setter = getMethod(o, "setClassLoaders", ClassLoader.class);
   invokeMethodWithArray(o, setter, testClassLoader);
 }