marshaller.marshal(getAllTypesElement(), sw);
assertEquals(input.toString(), sw.toString());
}
protected String getMarshalledAuthor() throws JAXBException {
Author author = new ObjectFactory().createAuthor();
author.setRating(2);
author.setValue("This is a test.");
StringWriter sw = new StringWriter();
Marshaller m = getFactory().createMarshaller();
m.setProperty(JMMarshallerImpl.JAXME_XML_DECLARATION, Boolean.FALSE);
m.marshal(author, sw);
return sw.toString();