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