@Test
public void testUnwrappingSlingResponse() {
final HttpServletResponse resp = context.mock(HttpServletResponse.class);
final HttpServletResponseWrapper wrapper = new HttpServletResponseWrapper(resp);
final HttpServletResponseWrapper wrapper2 = new HttpServletResponseWrapper(wrapper);
final SlingHttpServletResponseImpl slingResponse = new SlingHttpServletResponseImpl(null, wrapper2);
ServletResponse unwrapped = ExternalServletContextWrapper.
RequestDispatcherWrapper.unwrapServletResponse(slingResponse);
assertEquals(wrapper2, unwrapped);