ReflectionHelper { <T> Class<T> loadClass(String name) throws ClassNotFoundException { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if (null == cl) { cl = ToHelper.class.getClassLoader(); } return (Class<T>) cl.loadClass(name); }  T newInstance(Class<T> clazz); T newInstance(String className);  }
@Test public void testLoadClass() throws Exception { Class reflectionHelperClass = reflectionHelper.loadClass(REFLECTION_HELPER_CLASS); assertThat(reflectionHelperClass.getName()).isEqualTo(REFLECTION_HELPER_CLASS); }