public void runTest(String xml, String defName, String method)
throws Exception
{
MockServletConfig config = new MockServletConfig();
MockServletContext context = new MockServletContext();
MockHttpSession session = new MockHttpSession();
session.setupServletContext(context);
MockHttpServletRequest request = new MockHttpServletRequest();
request.setupAddParameter("action", "constraints");
request.setupAddParameter("method", method);
request.setupAddParameter("xml", xml);
request.setupAddParameter("name", defName);