### Question:
HttpRequest extends StreamHandler { String handleSahiCookie(String cookieString) { if (Utils.isBlankOrNull(cookieString)) return cookieString; int ix = cookieString.indexOf("sahisid="); if (ix == -1) return cookieString; int endIx = cookieString.indexOf(";", ix + 1); int length = cookieString.length(); String stripped; if (endIx == -1) { sahiCookie = cookieString.substring(ix + "sahisid=".length()); stripped = cookieString.substring(0, ix); } else { sahiCookie = cookieString.substring(ix + "sahisid=".length(), endIx); stripped = cookieString.substring(0, ix) + cookieString.substring(endIx + 1, length).trim(); } stripped = stripped.trim(); if (stripped.endsWith(";")) stripped = stripped.substring(0, stripped.length() - 1); return stripped.trim(); } HttpRequest();  HttpRequest(final InputStream in);  HttpRequest(final InputStream in, final boolean isSSLSocket); @Override String toString(); String host(); int port(); void setHost(final String host); boolean isPost(); boolean isPut(); boolean isDelete(); boolean isGet(); boolean isConnect(); boolean isSSL(); String method(); String uri(); String protocol(); String queryString(); String getParameter(String key); HttpRequest modifyForFetch(); Session session(); String sahiCookie(); String fileExtension(); String fileName(); String url(); boolean isMultipart(); void setSSL(boolean isSSL); boolean isIE(); boolean isAjax(); String referer(); boolean isExcluded();  }### Answer:
@Test public void testHandleSahiCookie() throws Exception { checkCookie("a=b; sahisid=123; c=d", "a=b; c=d"); checkCookie("a=b; sahisid=123;", "a=b"); checkCookie("sahisid=123; c=d", "c=d"); checkCookie("a=b; sahisid=123", "a=b"); checkCookie("a=b; e=f; sahisid=123; c=d; g=h", "a=b; e=f; c=d; g=h"); }