### Question:
StateAwareResponseDelegate implements ResponseDelegate { @Override public void setContentType(String contentType) { 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);  }### Answer:
@Test(expected = UnsupportedOperationException.class) public void testSetContentType() { delegate.setContentType("text/html"); }