mp3file.setFrameAcrossTags(frame);
assertNull(mp3file.getID3v1Tag());
assertNull(mp3file.getID3v2Tag());
assertNull(mp3file.getLyrics3Tag());
assertNull(mp3file.getFilenameTag());
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(null);
mp3file.setLyrics3Tag(null);
mp3file.setFilenameTag(null);
mp3file.setFrameAcrossTags(frame);
mp3file.getID3v1Tag().getAlbum().equals(testString);
assertNull(mp3file.getID3v2Tag());
assertNull(mp3file.getLyrics3Tag());
assertNull(mp3file.getFilenameTag());
mp3file.setID3v1Tag(null);
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(null);
mp3file.setFilenameTag(null);
mp3file.setFrameAcrossTags(frame);
assertNull(mp3file.getID3v1Tag());
((FrameBodyTALB) mp3file.getID3v2Tag().getFrame("TALB").getBody()).getText().equals(testString);
assertNull(mp3file.getLyrics3Tag());
assertNull(mp3file.getFilenameTag());
mp3file.setID3v1Tag(null);
mp3file.setID3v2Tag(null);
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(null);
mp3file.setFrameAcrossTags(frame);
assertNull(mp3file.getID3v1Tag());
assertNull(mp3file.getID3v2Tag());
((FieldBodyEAL) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("EAL").getBody()).getAlbum().equals(testString);
assertNull(mp3file.getFilenameTag());
mp3file.setID3v1Tag(null);
mp3file.setID3v2Tag(null);
mp3file.setLyrics3Tag(null);
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
mp3file.setFrameAcrossTags(frame);
assertNull(mp3file.getID3v1Tag());
assertNull(mp3file.getID3v2Tag());
assertNull(mp3file.getLyrics3Tag());
((FrameBodyTALB) mp3file.getFilenameTag().getFrame("TALB").getBody()).getText().equals(testString);
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(null);
mp3file.setFilenameTag(null);
mp3file.setFrameAcrossTags(frame);
mp3file.getID3v1Tag().getAlbum().equals(testString);
((FrameBodyTALB) mp3file.getID3v2Tag().getFrame("TALB").getBody()).getText().equals(testString);
assertNull(mp3file.getLyrics3Tag());
assertNull(mp3file.getFilenameTag());
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(null);
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(null);
mp3file.setFrameAcrossTags(frame);
mp3file.getID3v1Tag().getAlbum().equals(testString);
assertNull(mp3file.getID3v2Tag());
((FieldBodyEAL) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("EAL").getBody()).getAlbum().equals(testString);
assertNull(mp3file.getFilenameTag());
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(null);
mp3file.setLyrics3Tag(null);
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
mp3file.setFrameAcrossTags(frame);
mp3file.getID3v1Tag().getAlbum().equals(testString);
assertNull(mp3file.getID3v2Tag());
assertNull(mp3file.getLyrics3Tag());
((FrameBodyTALB) mp3file.getFilenameTag().getFrame("TALB").getBody()).getText().equals(testString);
mp3file.setID3v1Tag(null);
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(null);
mp3file.setFrameAcrossTags(frame);
assertNull(mp3file.getID3v1Tag());
((FrameBodyTALB) mp3file.getID3v2Tag().getFrame("TALB").getBody()).getText().equals(testString);
((FieldBodyEAL) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("EAL").getBody()).getAlbum().equals(testString);
assertNull(mp3file.getFilenameTag());
mp3file.setID3v1Tag(null);
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(null);
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
mp3file.setFrameAcrossTags(frame);
assertNull(mp3file.getID3v1Tag());
((FrameBodyTALB) mp3file.getID3v2Tag().getFrame("TALB").getBody()).getText().equals(testString);
assertNull(mp3file.getLyrics3Tag());
((FrameBodyTALB) mp3file.getFilenameTag().getFrame("TALB").getBody()).getText().equals(testString);
mp3file.setID3v1Tag(null);
mp3file.setID3v2Tag(null);
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
mp3file.setFrameAcrossTags(frame);
assertNull(mp3file.getID3v1Tag());
assertNull(mp3file.getID3v2Tag());
((FieldBodyEAL) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("EAL").getBody()).getAlbum().equals(testString);
((FrameBodyTALB) mp3file.getFilenameTag().getFrame("TALB").getBody()).getText().equals(testString);
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(null);
mp3file.setFrameAcrossTags(frame);
mp3file.getID3v1Tag().getAlbum().equals(testString);
((FrameBodyTALB) mp3file.getID3v2Tag().getFrame("TALB").getBody()).getText().equals(testString);
((FieldBodyEAL) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("EAL").getBody()).getAlbum().equals(testString);
assertNull(mp3file.getFilenameTag());
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(null);
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
mp3file.setFrameAcrossTags(frame);
mp3file.getID3v1Tag().getAlbum().equals(testString);
((FrameBodyTALB) mp3file.getID3v2Tag().getFrame("TALB").getBody()).getText().equals(testString);
assertNull(mp3file.getLyrics3Tag());
((FrameBodyTALB) mp3file.getFilenameTag().getFrame("TALB").getBody()).getText().equals(testString);
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(null);
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
mp3file.setFrameAcrossTags(frame);
mp3file.getID3v1Tag().getAlbum().equals(testString);
assertNull(mp3file.getID3v2Tag());
((FieldBodyEAL) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("EAL").getBody()).getAlbum().equals(testString);
((FrameBodyTALB) mp3file.getFilenameTag().getFrame("TALB").getBody()).getText().equals(testString);
mp3file.setID3v1Tag(null);
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
mp3file.setFrameAcrossTags(frame);
assertNull(mp3file.getID3v1Tag());
((FrameBodyTALB) mp3file.getID3v2Tag().getFrame("TALB").getBody()).getText().equals(testString);
((FieldBodyEAL) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("EAL").getBody()).getAlbum().equals(testString);
((FrameBodyTALB) mp3file.getFilenameTag().getFrame("TALB").getBody()).getText().equals(testString);
// test all
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
frameBody = new FrameBodyTIT2();
((FrameBodyTIT2) frameBody).setText(testString);
frame.setBody(frameBody);
mp3file.setFrameAcrossTags(frame);
mp3file.getID3v1Tag().getTitle().equals(testString);
((FrameBodyTIT2) mp3file.getID3v2Tag().getFrame("TIT2").getBody()).getText().equals(testString);
((FieldBodyETT) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("ETT").getBody()).getTitle().equals(testString);
((FrameBodyTIT2) mp3file.getFilenameTag().getFrame("TIT2").getBody()).getText().equals(testString);
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
frameBody = new FrameBodyTPE1();
((FrameBodyTPE1) frameBody).setText(testString);
frame.setBody(frameBody);
mp3file.setFrameAcrossTags(frame);
mp3file.getID3v1Tag().getArtist().equals(testString);
((FrameBodyTPE1) mp3file.getID3v2Tag().getFrame("TPE1").getBody()).getText().equals(testString);
((FieldBodyEAR) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("EAR").getBody()).getArtist().equals(testString);
((FrameBodyTPE1) mp3file.getFilenameTag().getFrame("TPE1").getBody()).getText().equals(testString);
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
frameBody = new FrameBodyTALB();
((FrameBodyTALB) frameBody).setText(testString);
frame.setBody(frameBody);
mp3file.setFrameAcrossTags(frame);
mp3file.getID3v1Tag().getAlbum().equals(testString);
((FrameBodyTALB) mp3file.getID3v2Tag().getFrame("TALB").getBody()).getText().equals(testString);
((FieldBodyEAL) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("EAL").getBody()).getAlbum().equals(testString);
((FrameBodyTALB) mp3file.getFilenameTag().getFrame("TALB").getBody()).getText().equals(testString);
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
frameBody = new FrameBodyTDRC();
((FrameBodyTDRC) frameBody).setText("2003");
frame.setBody(frameBody);
mp3file.setFrameAcrossTags(frame);
mp3file.getID3v1Tag().getYear().equals("2003");
((FrameBodyTDRC) mp3file.getID3v2Tag().getFrame("TDRC").getBody()).getText().equals("2003");
assertEquals(0, ((Lyrics3v2) mp3file.getLyrics3Tag()).getFieldCount());
((FrameBodyTDRC) mp3file.getFilenameTag().getFrame("TDRC").getBody()).getText().equals("2003");
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
frameBody = new FrameBodyCOMM();
((FrameBodyCOMM) frameBody).setText(testString);
frame.setBody(frameBody);
mp3file.setFrameAcrossTags(frame);
mp3file.getID3v1Tag().getComment().equals(testString);
((FrameBodyCOMM) ((ID3v2_4Frame) mp3file.getID3v2Tag().getFrameOfType("COMM").next()).getBody()).getText()
.equals(testString);
((FieldBodyINF) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("INF").getBody()).getAdditionalInformation()
.equals(testString);
((FrameBodyCOMM) ((ID3v2_4Frame) mp3file.getFilenameTag().getFrameOfType("COMM").next()).getBody()).getText()
.equals(testString);
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
frameBody = new FrameBodyTCON();
((FrameBodyTCON) frameBody).setText("42");
frame.setBody(frameBody);
mp3file.setFrameAcrossTags(frame);
assertEquals(42, mp3file.getID3v1Tag().getGenre());
((FrameBodyTCON) mp3file.getID3v2Tag().getFrame("TCON").getBody()).getText().equals("42");
assertEquals(0, ((Lyrics3v2) mp3file.getLyrics3Tag()).getFieldCount());
((FrameBodyTCON) mp3file.getFilenameTag().getFrame("TCON").getBody()).getText().equals("42");
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
frameBody = new FrameBodyTRCK();
((FrameBodyTRCK) frameBody).setText("42");
frame.setBody(frameBody);
mp3file.setFrameAcrossTags(frame);
assertEquals(42, ((ID3v1_1) mp3file.getID3v1Tag()).getTrack());
((FrameBodyTRCK) mp3file.getID3v2Tag().getFrame("TRCK").getBody()).getText().equals("42");
assertEquals(0, ((Lyrics3v2) mp3file.getLyrics3Tag()).getFieldCount());
((FrameBodyTRCK) mp3file.getFilenameTag().getFrame("TRCK").getBody()).getText().equals("42");
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
frameBody = new FrameBodySYLT();
((FrameBodySYLT) frameBody).addLyric(0, testString);
frame.setBody(frameBody);
mp3file.setFrameAcrossTags(frame);
assertEquals(0, (new ID3v2_4(mp3file.getID3v1Tag())).getFrameCount());
((FrameBodySYLT) mp3file.getID3v2Tag().getFrame("SYLT").getBody()).getLyric().equals(testString);
((FieldBodyLYR) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("LYR").getBody()).getLyric().equals(testString);
((FrameBodySYLT) mp3file.getFilenameTag().getFrame("SYLT").getBody()).getLyric().equals(testString);
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
frameBody = new FrameBodyUSLT();
((FrameBodyUSLT) frameBody).setLyric(testString);
frame.setBody(frameBody);
mp3file.setFrameAcrossTags(frame);
assertEquals(0, (new ID3v2_4(mp3file.getID3v1Tag())).getFrameCount());
((FrameBodyUSLT) ((ID3v2_4Frame) mp3file.getID3v2Tag().getFrameOfType("USLT").next()).getBody()).getLyric()
.equals(testString);
((FieldBodyLYR) ((Lyrics3v2) mp3file.getLyrics3Tag()).getField("LYR").getBody()).getLyric().equals(testString);
((FrameBodyUSLT) ((ID3v2_4Frame) mp3file.getFilenameTag().getFrameOfType("USLT").next()).getBody()).getLyric()
.equals(testString);
mp3file.setID3v1Tag(new ID3v1_1());
mp3file.setID3v2Tag(new ID3v2_4());
mp3file.setLyrics3Tag(new Lyrics3v2());
mp3file.setFilenameTag(FilenameTagBuilder.createEmptyFilenameTag());
frameBody = new FrameBodyTCOM();
((FrameBodyTCOM) frameBody).setText(testString);