@Override
  protected void preReadFrom(
      final Class<Object> type,
      final Type genericType,
      final Annotation[] annotations,
      final MediaType mediaType,
      final MultivaluedMap<String, String> httpHeaders,
      final Unmarshaller unmarshaller)
      throws JAXBException {
    super.preReadFrom(type, genericType, annotations, mediaType, httpHeaders, unmarshaller);

    initializeUnmarshaller(unmarshaller);
  }
  @Override
  protected void preWriteTo(
      final Object object,
      final Class<?> type,
      final Type genericType,
      final Annotation[] annotations,
      final MediaType mediaType,
      final MultivaluedMap<String, Object> httpHeaders,
      final Marshaller marshaller)
      throws JAXBException {
    super.preWriteTo(object, type, genericType, annotations, mediaType, httpHeaders, marshaller);

    initializeMarshaller(marshaller);
  }
 public void testStreamingOutputSubclassNotWriteable() {
   assertFalse(moxyJsonProvider.isWriteable(MyStreamingOutput.class, null, null, null));
 }
 public void testStreamingOutputImplNotWriteable() {
   assertFalse(moxyJsonProvider.isWriteable(StreamingOutputImpl.class, null, null, null));
 }
 public void testDataSourceSubclassNotWriteable() {
   assertFalse(moxyJsonProvider.isWriteable(URLDataSource.class, null, null, null));
 }
 public void testFilSubclasseNotWriteable() {
   assertFalse(moxyJsonProvider.isWriteable(MyFile.class, null, null, null));
 }
 public void testPrimitiveByteArrayNotWriteable() {
   assertFalse(moxyJsonProvider.isWriteable(ClassConstants.APBYTE, null, null, null));
 }
 public void testStringNotWriteable() {
   assertFalse(moxyJsonProvider.isWriteable(String.class, null, null, null));
 }
 public void testDomainObjectWriteable() {
   assertTrue(moxyJsonProvider.isWriteable(Root.class, null, null, null));
 }