@@ -0,0 +1,1127 @@
+package unitestLibs;%0A%0Aimport static org.junit.Assert.fail;%0A%0Aimport java.lang.reflect.Constructor;%0Aimport java.lang.reflect.InvocationTargetException;%0Aimport java.lang.reflect.Method;%0A%0Apublic class Uintility %7B%0A%09%0A%09public static class Reflection %7B%0A%09%09%0A%09%09public static Object newTestObj(Constructor ctruct, Object%5B%5D args) %7B%0A%09%09%09%0A%09%09%09Object testObj = null;%0A%09%09%09%0A%09%09%09try %7B%0A%09%09%09%09%0A%09%09%09%09ctruct.setAccessible(true);%0A%09%09%09%09testObj = ctruct.newInstance(args);%09%0A%09%09%09%09%0A%09%09%09%7D catch (InstantiationException%0A%09%09%09%09%09 %7C IllegalAccessException%0A%09%09%09%09%09 %7C IllegalArgumentException%0A%09%09%09%09%09 %7C InvocationTargetException e%0A%09%09%09) %7B%0A%09%09%09%09e.printStackTrace();%0A%09%09%09%09fail(%22Something wrong with the reflection on newing instance...%22);%0A%09%09%09%7D%09%0A%09%09%09%0A%09%09%09return testObj;%0A%09%09%7D%0A%09%09%0A%09%09public static Method getPrivateMethod(Class cls, String name, Class%5B%5D params) %7B%0A%09%09%09%0A%09%09%09Method method = null;%0A%09%09%09%0A%09%09%09try %7B%0A%09%09%09%09%0A%09%09%09%09method = cls.getDeclaredMethod(name, params);%0A%09%09%09%09method.setAccessible(true);%0A%09%09%09%09%0A%09%09%09%7D catch (NoSuchMethodException %7C SecurityException e) %7B%0A%09%09%09%09e.printStackTrace();%0A%09%09%09%09fail(%22Something wrong with the reflection on getting method...%22);%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09return method;%0A%09%09%7D%0A%09%7D%0A%09%0A%7D%0A

Add the utility lib class, unitest/unitestLibs/Uintility.java, for the unit test's use.