}
}
private void testWriteApe(String name) {
Track track = new Track();
TrackData trackData = track.getTrackData();
trackData.addArtist(ARTIST);
trackData.addAlbumArtist(ALBUM_ARTIST);
trackData.addTitle(TITLE);
trackData.addAlbum(ALBUM);
trackData.addYear(YEAR);
trackData.addGenre(GENRE);
trackData.addTrack(TRACK);
trackData.addTrackTotal(TRACK_TOTAL);
trackData.addDisc(DISC_NO);
trackData.addDiscTotal(DISC_TOTAL);
trackData.addRecordLabel(RECORD_LABEL);
trackData.addCatalogNo(CATALOG_NO);
trackData.addComment(COMMENT);
trackData.addRating(RATING);
File file = getFileFromResource(name);
File fo = createTempFile(name, file.getParentFile().getParentFile().getParentFile());
copy(file, fo);
trackData.setLocation(fo.toURI().toString());
try {
getAudioFileWriter(fo.getName()).write(track);
} catch (TagWriteException e) {
e.printStackTrace();
}