// the method, the NVList argument list, and the NamedValue for the
// result. Then invoke the method by calling invoke() on the Request.
Request thisReq =
server._create_request(ctx, "myFunction", argList, resultVal, exceptions, null);
thisReq.invoke();
result = thisReq.result().value();
// Should be an exception thrown.
assertTrue (thisReq.env ().exception () != null);