Hmm.  Are you sure this is the only place in the code that assumes that getTestClass and new TestClass(target.getClass()) are equivalent?