### Question:
GP4Parser implements Parser { private void readFileHeaders(InputStream is) throws IOException { String version = helper.readStringByte(is, VERSION_LENGTH); this.listener.readVersion(version); String title = helper.readStringIntegerPlusOne(is); this.listener.readTitle(title); String subtitle = helper.readStringIntegerPlusOne(is); this.listener.readSubTitle(subtitle); String interpret = helper.readStringIntegerPlusOne(is); this.listener.readArtist(interpret); String album = helper.readStringIntegerPlusOne(is); this.listener.readAlbum(album); String songAuthor = helper.readStringIntegerPlusOne(is); this.listener.readSongAuthor(songAuthor); String copyright = helper.readStringIntegerPlusOne(is); this.listener.readCopyright(copyright); String pieceAuthor = helper.readStringIntegerPlusOne(is); this.listener.readPieceAuthor(pieceAuthor); String instructions = helper.readStringIntegerPlusOne(is); this.listener.readInstruction(instructions); int numberOfNotice = helper.readInt(is); this.listener.readNumberOfNotices(numberOfNotice); for (int i = 0; i < numberOfNotice; i++) { String notice = helper.readStringIntegerPlusOne(is); this.listener.readNotice(notice); } boolean tripletFeel = helper.readBoolean(is); this.listener.readIsTripleFeel(tripletFeel); }  void close(); void openFile(File file); @Inject void setListener(GP4ParserListener listener); static final int VERSION_LENGTH; }### Answer:
@Test public void testReadFileHeaders() throws Exception { instance.openFile(simpleFile); Mockito.verify(listener).readVersion("FICHIER GUITAR PRO v4.06"); Mockito.verify(listener).readTitle("title"); Mockito.verify(listener).readSubTitle("subtitle"); Mockito.verify(listener).readArtist("artist"); Mockito.verify(listener).readAlbum("album"); Mockito.verify(listener).readSongAuthor("music"); Mockito.verify(listener).readCopyright("copyright"); Mockito.verify(listener).readInstruction("instructions"); Mockito.verify(listener).readNumberOfNotices(1); Mockito.verify(listener).readNotice("notice"); Mockito.verify(listener).readIsTripleFeel(false); }