{
// an error has been discovered in Exif data segments where a directory is referenced
// repeatedly. thanks to Alistair Dickie for providing the sample image used in this
// unit test.
File metadataFile = new File("src/com/drew/metadata/exif/test/recursiveDirectories.metadata");
Metadata metadata = new ExifReader(JpegSegmentData.FromFile(metadataFile)).extract();
metadata.getDirectory(ExifDirectory.class);
// String fileName = "src/com/drew/metadata/exif/test/recursiveDirectories.jpg";
// Metadata metadata = new ExifReader(new File(fileName)).extract();
// metadata.getDirectory(ExifDirectory.class);
}