public void setUp() throws Exception {
    super.setUp();
    MyAttachmentUnmarshaller handler = new MyAttachmentUnmarshaller();

    handler.attachments.put(
        MyAttachmentUnmarshaller.ATTACHMENT_TEST_ID,
        MyAttachmentUnmarshaller.PHOTO_BASE64.getBytes());
    xmlUnmarshaller.setAttachmentUnmarshaller(handler);
  }
 public void setUp() throws Exception {
   super.setUp();
   xmlMarshaller.setAttachmentMarshaller(new MyAttachmentMarshaller());
   xmlUnmarshaller.setAttachmentUnmarshaller(new MyAttachmentUnmarshaller());
 }