code: @SuppressWarnings("unchecked")
      private static <T> T doInvokeMethod(Object tested, Class<?> declaringClass, String methodToExecute,
                                          Object... arguments) throws Exception {
          Method methodToInvoke = findMethodOrThrowException(tested, declaringClass, methodToExecute, arguments);
  
          // Invoke test
          return (T) performMethodInvocation(tested, methodToInvoke, arguments);
      }
docs: Do invoke method.
  
  @param <T>             the generic type
  @param tested          the tested
  @param declaringClass  the declaring class
  @param methodToExecute the method to execute
  @param arguments       the arguments
  @return the t
  @throws Exception the exception