public class Shared { public static void main(String arg[]) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, I
When you invoke a method via reflection, you need to pass the object you are calling the method on as the first parameter to Method#invoke.
Method#invoke
// equivalent to s1.testParam("", obj) testParamMethod.invoke(s1, "", obj);