public Object invoke(String methodName,Class[] types,Object[] arguments){
  Method method=null;
  try {
    method=fClass.getDeclaredMethod(methodName,types);
  }
 catch (  SecurityException e) {
    fail();
  }
catch (  NoSuchMethodException ex) {
    fail();
  }
  Assert.isNotNull(method);
  method.setAccessible(true);
  try {
    return method.invoke(fInstance,arguments);
  }
 catch (  IllegalArgumentException e) {
    fail();
  }
catch (  InvocationTargetException e) {
    fail();
  }
catch (  IllegalAccessException e) {
    fail();
  }
  return null;
}

public Object invoke ( String methodName , Class [ ] types , Object [ ] arguments ) { Method method = null ; try { method = fClass . getDeclaredMethod ( methodName , types ) ; } catch ( SecurityException e ) { fail ( ) ; } catch ( NoSuchMethodException ex ) { fail ( ) ; } Assert . isNotNull ( method ) ; method . setAccessible ( true ) ; try { return method . invoke ( fInstance , arguments ) ; } catch ( IllegalArgumentException e ) { fail ( ) ; } catch ( InvocationTargetException e ) { fail ( ) ; } catch ( IllegalAccessException e ) { fail ( ) ; } return null ; }
invokes the method with the given method name and arguments .
