Assert.assertEquals("no person id.", e.getAnotherMessage());
}
Person person = new Person();
person.setId("new-person");
Assert.assertEquals("new-person", personService.storePerson(person).getId());
byte[] pixBytes = "this is a bunch of bytes that I would like to make sure are serialized correctly so that I can prove out that attachments are working properly".getBytes();
person.setPicture(new DataHandler(new ByteArrayDataSource(pixBytes, "image/jpeg")));
DataHandler returnedPix = personService.storePerson(person).getPicture();