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