Assert.assertEquals(doc, expected);
}
@Test
public void testWithOptions() throws ParserConfigurationException {
ZencoderWatermark watermark = new ZencoderWatermark("http://url/");
watermark.setHeight(10);
watermark.setWidth(200);
watermark.setX("21%");
watermark.setY("12345");
String doc = StringUtil.stripSpacesAndLineBreaksFrom( watermark );
String expected = "<?xmlversion=\"1.0\"encoding=\"UTF-8\"?><watermark><url>http://url/</url><x>21%</x><y>12345</y><width>200</width><height>10</height></watermark>";
// System.out.println(doc);
Assert.assertEquals(doc, expected);