* Test that with only ID3v2 tags, of version 2.4, we get the full
* set of information out.
*/
@Test
public void testMp3ParsingID3v24() throws Exception {
Parser parser = new AutoDetectParser(); // Should auto-detect!
ContentHandler handler = new BodyContentHandler();
Metadata metadata = new Metadata();
InputStream stream = Mp3ParserTest.class.getResourceAsStream(
"/test-documents/testMP3id3v24.mp3");
try {
parser.parse(stream, handler, metadata, new ParseContext());
} finally {
stream.close();
}
assertEquals("audio/mpeg", metadata.get(Metadata.CONTENT_TYPE));