public void testWindowsXpFields() throws Exception
{
String fileName = "src/com/drew/metadata/exif/test/windowsXpFields.jpg";
Metadata metadata = new ExifReader(new File(fileName)).extract();
Directory directory = metadata.getDirectory(ExifDirectory.class);
ExifDescriptor descriptor = new ExifDescriptor(directory);
assertEquals("Testing artist", descriptor.getDescription(ExifDirectory.TAG_WIN_AUTHOR));
assertEquals("Testing comments", descriptor.getDescription(ExifDirectory.TAG_WIN_COMMENT));
assertEquals("Testing keywords", descriptor.getDescription(ExifDirectory.TAG_WIN_KEYWORDS));
assertEquals("Testing subject", descriptor.getDescription(ExifDirectory.TAG_WIN_SUBJECT));
assertEquals("Testing title", descriptor.getDescription(ExifDirectory.TAG_WIN_TITLE));
}