This code allow me invoking a method with tests parameter
Method m = aClass.getDeclaredMethod(methodName, paramTypes);
Integer n =10;
Object retobj =m.invoke(o, "test",n);
System.out.println(retobj);
Now I want to invoke the method with the arguments list.
List<Object> arguments =container.getArgs();
Object retobj =m.invoke(o, (Object) arguments);
But I get this error
java.lang.IllegalArgumentException: wrong number of arguments