Assert.assertEquals(doc, expected);
}
@Test
public void testWithOptions() throws ParserConfigurationException {
ZencoderJob job = new ZencoderJob("http://testpath/");
job.setDownloadConnections(10);
job.setTest(true);
job.setPrivate(true);
job.setZencoderRegion(ZencoderRegion.ASIA);
job.setPassThrough("user_id:100");
String doc = StringUtil.stripSpacesAndLineBreaksFrom(job.toString());
String expected = ("<?xmlversion=\"1.0\"encoding=\"UTF-8\"?>" +
"<api-request>" +
"<input>http://testpath/</input>" +
"<region>asia</region>" +
"<download_connections>10</download_connections>" +