File jpeg = new File("src/com/drew/imaging/exif/test/withExif.jpg");
File jpeg = new File("src/com/drew/metadata/exif/test/withExif.jpg");
    public void testReadApp1Segment() throws Exception    {        File jpeg = new File("src/com/drew/imaging/exif/test/withExif.jpg");        JpegSegmentReader segmentReader = new JpegSegmentReader(jpeg);        byte[] exifData = segmentReader.readSegment(JpegSegmentReader.SEGMENT_MARKER_APP1);        assertTrue("exif data too short", exifData.length > 4);        assertEquals("Exif", new String(exifData, 0, 4));        ExifExtractor extractor = new ExifExtractor(exifData);        try {            ImageInfo info = extractor.extract();            assertTrue("app1 segment should contain exif tags", info.countTags() > 0);        } catch (ExifProcessingException e) {            fail("app1 segment couldn't be read by exif extractor");        }    }