@Test
public void testArtworkCollectionAddFromArtwork() throws JitcaException{
final String ARTWORK = "C:\\Nothing";
IITArtworkCollection itArtworkCollection = new ITArtworkCollectionMock();
TrackImpl track = TrackImpl.create(libraryMock, new ITTrackMock(itArtworkCollection));
ArtworkCollectionImpl artworkCollection = new ArtworkCollectionImpl(track);
assertTrue(artworkCollection.size() == 0);
ArtworkImpl artwork1 = artworkCollection.add(new File(ARTWORK));
artwork1.setDescription(ARTWORK);
assertTrue(artworkCollection.size() == 1);
assertTrue(artworkCollection.get(0).getDescription().equals(ARTWORK));
@SuppressWarnings("unused")
ArtworkImpl artwork2 = artworkCollection.add(artwork1);
assertTrue(artworkCollection.size() == 2);
assertTrue(artworkCollection.get(1).getDescription().equals(ARTWORK));
}