attributes.add(attr);
String message = "{value}, {element}, {assetGroup}, {device}, " +
"{rendering}, {pixelDepth}bits, {pixelsX}x{pixelsY}px, " +
"{widthHint}";
PolicyAttributesDetails details =
new PolicyAttributesDetails("imageComponent", true);
AttributesMessageFormatter attributesMessageFormatter =
new AttributesMessageFormatter(details);
String formatted =
attributesMessageFormatter.format(attributes, message, null);
assertEquals("PC, Color, 24bits, 100x200px", formatted);