_port=uri.getPort();
_tester.setContextPath("/ctx");
_tester.addServlet(TestServlet.class, "/*");
FilterHolder dos=_tester.addFilter(DoSFilter2.class,"/dos/*",0);
dos.setInitParameter("maxRequestsPerSec","4");
dos.setInitParameter("delayMs","200");
dos.setInitParameter("throttledRequests","1");
dos.setInitParameter("waitMs","10");
dos.setInitParameter("throttleMs","4000");
dos.setInitParameter("remotePort", "false");
dos.setInitParameter("insertHeaders", "true");
FilterHolder quickTimeout = _tester.addFilter(DoSFilter2.class,"/timeout/*",0);
quickTimeout.setInitParameter("maxRequestsPerSec","4");
quickTimeout.setInitParameter("delayMs","200");
quickTimeout.setInitParameter("throttledRequests","1");
quickTimeout.setInitParameter("waitMs","10");
quickTimeout.setInitParameter("throttleMs","4000");
quickTimeout.setInitParameter("remotePort", "false");
quickTimeout.setInitParameter("insertHeaders", "true");
quickTimeout.setInitParameter("maxRequestMs", _maxRequestMs + "");
_tester.start();
}