@ SuppressWarnings ( "unchecked" ) public static synchronized < T > T invokeMethod ( Object tested , Class < ? > declaringClass , String methodToExecute , Object ... arguments ) throws Exception { return ( T ) doInvokeMethod ( tested , declaringClass , methodToExecute , arguments ) ; }
Invoke a private or inner class method in that is located in a subclass of the tested instance . This might be useful to test private methods .