protected String readEncodingAndString(int max) throws IOException {
        byte encoding = readByte();
        return readEncodedString(encoding, max - 1);
    }
@Test
    public void testReadMultipleStrings() throws IOException {
        byte[] data = {
            ID3Reader.ENCODING_ISO,
            'F', 'o', 'o',
            0, // Null-terminated
            ID3Reader.ENCODING_ISO,
            'B', 'a', 'r',
            0 // Null-terminated
        };
        CountingInputStream inputStream = new CountingInputStream(new ByteArrayInputStream(data));
        ID3Reader reader = new ID3Reader(inputStream);
        assertEquals("Foo", reader.readEncodingAndString(1000));
        assertEquals("Bar", reader.readEncodingAndString(1000));
    }