### Question:
SimulatorHttpMessageConverter implements GenericHttpMessageConverter<Object> { @Override public Object read(Type type, Class contextClass, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException { return delegate.read(Object.class, inputMessage); }  @Override boolean canRead(Type type, Class contextClass, MediaType mediaType); @Override Object read(Type type, Class contextClass, HttpInputMessage inputMessage); @Override boolean canWrite(Type type, Class clazz, MediaType mediaType); @Override void write(Object o, Type type, MediaType contentType, HttpOutputMessage outputMessage); @Override boolean canRead(Class clazz, MediaType mediaType); @Override boolean canWrite(Class clazz, MediaType mediaType); @Override List<MediaType> getSupportedMediaTypes(); @Override Object read(Class clazz, HttpInputMessage inputMessage); @Override void write(Object o, MediaType contentType, HttpOutputMessage outputMessage);  }### Answer:
@Test(expectedExceptions = IllegalStateException.class) public void testUnsupportedRead() throws IOException { converter.read(Object.class, new MockHttpInputMessage("Hello".getBytes(Charset.forName("UTF-8")))); }