//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);
if (aset == null) {
fail("At least one attribute is unsupported");
}
if (aset != null) {
Attribute[] aarr = aset.toArray();
System.out
.println("Usupported attributes fo DocFlavor "
+ flavors[j]);
for (int k = 0, kk = aarr.length; k < kk; k++) {
System.out.println("\t" + aarr[k]);