setUp();
File testFile = this.testMusicArray[0].getMp3file();
MP3File mp3file = this.testMusicArray[0];
ID3v2_4 tag = null;
ID3v2_4Frame wcopFrame = null;
FrameBodyWCOP wcopFrameBody = null;
tag = new ID3v2_4(mp3file.getID3v2Tag());
System.err.println("The tag is: " + tag);
wcopFrame = new ID3v2_4Frame(tag.getFrame("WCOP"));
wcopFrameBody = new FrameBodyWCOP("http://creativecommons.org");
wcopFrameBody.setUrlLink("http://creativecommons.org");
wcopFrame.setBody(wcopFrameBody);
System.err.println("The wcop frame is: " + wcopFrame.toString());
tag.setFrame(wcopFrame);
mp3file.setID3v2Tag(tag);
System.err.println("The WCOP frame contains: " + ((FrameBodyWCOP) wcopFrame.getBody()).getUrlLink());
mp3file.save(testFile.toString(), TagConstant.MP3_FILE_SAVE_OVERWRITE);
mp3file.save();
mp3file = new MP3File(testFile);
tag = new ID3v2_4(mp3file.getID3v2Tag());
System.err.println("The tag is: " + tag);
// run again
wcopFrame = new ID3v2_4Frame(tag.getFrame("WCOP"));
wcopFrameBody = new FrameBodyWCOP("http://creativecommons.org");
wcopFrameBody.setUrlLink("http://creativecommons.org");
wcopFrame.setBody(wcopFrameBody);
System.err.println("The wcop frame is: " + wcopFrame.toString());
tag.setFrame(wcopFrame);
mp3file.setID3v2Tag(tag);
System.err.println("The WCOP frame contains: " + ((FrameBodyWCOP) wcopFrame.getBody()).getUrlLink());