public void test() throws ParserConfigurationException {
List<ZencoderS3AccessControlRight> rights = new ArrayList<ZencoderS3AccessControlRight>();
rights.add(ZencoderS3AccessControlRight.FULL_CONTROL);
rights.add(ZencoderS3AccessControlRight.READ);
ZencoderS3AccessControlItem ca = new ZencoderS3AccessControlItem(
"test", rights);
String doc = StringUtil.stripSpacesAndLineBreaksFrom(ca.toString());
String expected = "<?xmlversion=\"1.0\"encoding=\"UTF-8\"?><access_control><grantee>test</grantee><permissions><permission>FULL_CONTROL</permission><permission>READ</permission></permissions></access_control>";
// System.out.println(doc);
Assert.assertEquals(doc, expected);
}