### Question:
ProxyingInstantiator implements ObjectInstantiator<T> { public T newInstance() { return ClassUtils.newInstance(newType); } ProxyingInstantiator(Class<T> type); T newInstance();  }### Answer:
@Test public void testNewInstance() { ObjectInstantiator<EmptyClass> inst = new ProxyingInstantiator<>(EmptyClass.class); EmptyClass c = inst.newInstance(); assertEquals("org.objenesis.EmptyClass$$$Objenesis", c.getClass().getName()); }
@Test public void testJavaLangInstance() { ObjectInstantiator<Object> inst = new ProxyingInstantiator<>(Object.class); Object c = inst.newInstance(); assertEquals("org.objenesis.subclasses.java.lang.Object$$$Objenesis", c.getClass().getName()); }