StateAwareResponseDelegate implements ResponseDelegate { @Override public OutputStream getOutputStream() { throw new UnsupportedOperationException( "No outputstream available for state-aware response"); }  @Override OutputStream getOutputStream(); @Override PrintWriter getPrintWriter(); @Override Writer getWriter(); @Override boolean isResponseCommitted(); @Override void setContentType(String contentType);  }
@Test(expected = UnsupportedOperationException.class) public void testGetOutputStream() { delegate.getOutputStream(); }