### Question:
JenkinsHttpMessageConverter implements HttpMessageConverter<Jenkins> { @Override public void write(Jenkins t, String contentType, HttpOutputMessage outputMessage) throws IOException { throw new UnsupportedOperationException(); }  @Override boolean canRead(Class<?> clazz); @Override boolean canWrite(Class<?> clazz); @Override Jenkins read(Class<? extends Jenkins> clazz, HttpInputMessage inputMessage); @Override void write(Jenkins t, String contentType, HttpOutputMessage outputMessage);  }### Answer:
@Test(expected = UnsupportedOperationException.class) public void write() throws Exception { converter.write(new Jenkins(), null, null); }