//uri = File.createTempFile("xxx", null).toURI();
} catch (URISyntaxException e) {
fail();
}
AttributeSet attrs = new HashAttributeSet();
attrs.add(Finishings.EDGE_STITCH);
attrs.add(MediaSizeName.JAPANESE_DOUBLE_POSTCARD);
attrs.add(new Destination(uri));
attrs.add(new DocumentName("Doc X", Locale.US));
attrs.add(new JobName("Job Y", Locale.US));
attrs.add(new RequestingUserName("User Z", Locale.US));
for (int j = 0; j < flavors.length; j++) {
if (services[i].isDocFlavorSupported(flavors[j])) {
AttributeSet aset = services[i]
.getUnsupportedAttributes(flavors[j], attrs);