private static void checkDuration(Metadata metadata, int expected) {
        assertEquals(expected,
                Math.round(Float.parseFloat(metadata.get(XMPDM.DURATION))),
                "wrong duration");
    }
Checks the duration of an MP3 file.

@param metadata the metadata object
@param expected the expected duration, rounded as seconds
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-audiovideo-module/src/test/java/org/apache/tika/parser/mp3/Mp3ParserTest.java