### Question:
GroovyResponseHttpMessageConverter implements HttpMessageConverter<GroovyResponse> { @Override public boolean canRead(Class<?> clazz) { return GroovyResponse.class.isAssignableFrom(clazz); }  @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 public void canRead() throws Exception { assertTrue(converter.canRead(GroovyResponse.class)); assertTrue(converter.canRead(new GroovyResponse() { @Override public InputStream getInputStream() throws IOException { return null; } }.getClass())); assertFalse(converter.canRead(Object.class)); }