private Context getContext(String contextPath, String cookiePath,
String cookieComment, String cookieDomain,
boolean httpOnly, boolean secure)
{
MockEngine engine = new MockEngine();
MockHost host = new MockHost();
host.setName("localhost");
engine.addChild(host);
StandardContext container = new StandardContext();
container.setPath(contextPath);
host.addChild(container);
SessionCookie cookie = container.getSessionCookie();
if (cookiePath != null)
cookie.setPath(cookiePath);
if (cookieComment != null)