HessianDeserializer implements MessageBodyReader<Object> { @Override public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return Serializable.class.isAssignableFrom(type); }  @Override boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream);  }
@Test public void isReadable() { assertTrue(cut.isReadable(Article.class, null, null, MediaType.WILDCARD_TYPE)); assertFalse(cut.isReadable(Object.class, null, null, MediaType.WILDCARD_TYPE)); }