private <T> Method findMethod(T object, String method,
			Class<?>[] parameters) {

		Method[] allMethods = findAllMethods(object.getClass());
		ArrayList<Method> allNamed = new ArrayList<Method>();

		// make a list of all methods with the given name
		for (Method elt : allMethods)
			if (elt.getName().equals(method))
				allNamed.add(elt);

		// / add the test to compare parameters -- invocation with int works!!
		if (allNamed.size() > 0) {
			for (Method m : allNamed) {
				if (this.matchParams(parameters, m.getParameterTypes())){
					return m;
				}
			}
			// no methods matched the given parameter list
			this.testname = this.testname + "\nNo method with the name " + method
					+ " had a matching argument list\n";
			System.out.println(this.testname);
			return null;
		}
		// no methods found with the given name
		else {
			this.testname = this.testname + "\nNo method with the name " + method
					+ " found\n";
			System.out.println(this.testname);
			return null;
		}
	}