public void testLoadJpegWithNoExifData() throws Exception
{
byte[] badExifData = new byte[]{ 1,2,3,4,5,6,7,8,9,10 };
Metadata metadata = new Metadata();
new ExifReader().extract(new ByteArrayReader(badExifData), metadata);
Directory directory = metadata.getDirectory(ExifSubIFDDirectory.class);
Assert.assertNotNull(directory);
Assert.assertEquals(0, directory.getTagCount());
}