private void checkDefaultHeader(ByteArrayOutputStream bos) throws IOException {
        ByteArrayInputStream in = new ByteArrayInputStream(bos.toByteArray());
        stream = new MpegStream(in);
        AudioFrame header = stream.nextFrame();
        assertNotNull(header, "No header found");
        assertEquals(AudioFrame.MPEG_V2, header.getVersionCode(), "Wrong MPEG version");
        assertEquals(AudioFrame.LAYER_3, header.getLayer(), "Wrong layer");
        assertEquals(80000, header.getBitRate(), "Wrong bit rate");
        assertEquals(24000, header.getSampleRate(), "Wrong sample rate");
    }
Tests whether the default test header can be found in a stream.

@param bos the stream
@throws IOException if an error occurs
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-audiovideo-module/src/test/java/org/apache/tika/parser/mp3/MpegStreamTest.java