### Question:
WrappedHttpServletRequest implements Request { @Override public Cookie getCookie(String cookieName) { javax.servlet.http.Cookie[] cookies = request.getCookies(); if (cookies == null) { return null; } for (javax.servlet.http.Cookie cookie : request.getCookies()) { if (cookie.getName().equals(cookieName)) { return new Cookie(cookie.getName(), cookie.getValue(), cookie.getVersion(), cookie.getDomain(), cookie.getPath()); } } return null; } WrappedHttpServletRequest(HttpServletRequest request); @Override String getFirstParam(String param); @Override String getMethod(); @Override String getURI(); @Override String getRelativePath(); @Override boolean isSecure(); @Override String getQueryParamValue(String param); @Override Cookie getCookie(String cookieName); @Override String getHeader(String name); @Override List<String> getHeaders(String name); @Override InputStream getInputStream(); @Override InputStream getInputStream(boolean buffered); @Override String getRemoteAddr(); @Override void setError(AuthenticationError error); @Override void setError(LogoutError error);  }### Answer:
@Test public void testGetCookie() throws Exception { assertNotNull(request.getCookie(COOKIE_NAME)); }
@Test public void testGetCookieCookiesNull() throws Exception { mockHttpServletRequest.setCookies(null); request.getCookie(COOKIE_NAME); }