@Test
void testEncodeUrl() {

    TestHttpServletResponse wrapped = new TestHttpServletResponse(null);
    HttpServletResponseWrapper wrapper = new HttpServletResponseWrapper(wrapped);
    assertThrows(UnsupportedOperationException.class, () -> wrapper.encodeUrl("url"));
}