ReflectionHelper { public <T> T newInstance(Class<T> clazz) throws IllegalAccessException, InstantiationException { return clazz.newInstance(); }  T newInstance(Class<T> clazz); T newInstance(String className);  }
@Test public void testNewInstanceClass() throws Exception { assertThat(reflectionHelper.newInstance(ReflectionHelper.class)).isInstanceOf(ReflectionHelper.class); }
@Test public void testNewInstanceName() throws Exception { Object instance = reflectionHelper.newInstance(REFLECTION_HELPER_CLASS); assertThat(instance).isInstanceOf(ReflectionHelper.class); }