@Test
void testAddCookie() {

    TestHttpServletResponse wrapped = new TestHttpServletResponse(null);
    HttpServletResponseWrapper wrapper = new HttpServletResponseWrapper(wrapped);
    wrapper.addCookie(new Cookie("name", "value"));
    assertNotNull(wrapped.getCookies());
    assertFalse(wrapped.getCookies().isEmpty());
}