@Test
public void classForNameFoundInParent() throws ClassNotFoundException {

    ClassLoader oldCl = Thread.currentThread().getContextClassLoader();
    ClassLoader cl = new MyCl(oldCl);
    Thread.currentThread().setContextClassLoader(cl);
    Class clazz = ClassUtil.classForName("org.jolokia.util.RequestType");
    assertEquals(clazz.getName(),"org.jolokia.util.RequestType");
    assertEquals(oldCl.loadClass("org.jolokia.util.RequestType"),clazz);
    Thread.currentThread().setContextClassLoader(oldCl);
}