HessianSerializer implements MessageBodyWriter<Object> { @Override public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return Serializable.class.isAssignableFrom(type); }  @Override boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override long getSize(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override void writeTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream);  }
@Test public void isWriteable() { assertTrue(cut.isWriteable(Article.class, null, null, MediaType.WILDCARD_TYPE)); assertFalse(cut.isWriteable(Object.class, null, null, MediaType.WILDCARD_TYPE)); }