@Test
public void testSpaceTextValues () throws Exception {
// check values with spaces at start or end
// in this case, the value should not be trimmed
InputStream is = DomXmpParser.class.getResourceAsStream("/validxmp/only_space_fields.xmp");
DomXmpParser xdb = new DomXmpParser();
XMPMetadata meta = xdb.parse(is);
// check producer
Assert.assertEquals(" ", meta.getAdobePDFSchema().getProducer());
// check creator tool
Assert.assertEquals("Canon ",meta.getXMPBasicSchema().getCreatorTool());