@Test
public void testSaveAndLoadDownloads() throws IOException {
CompactCalendar now = now();
List<Download> downloads = new ArrayList<>();
downloads.add(new Download("description", "url", Flatten, new FileAndChecksum(fileTarget, createChecksum()),
asList(new FileAndChecksum(fragmentTarget1, createChecksum()), new FileAndChecksum(fragmentTarget2, createChecksum())),
"etag", Downloading, tempFile));
persister.save(queueFile, downloads, now);
QueuePersister.Result result = persister.load(queueFile);
assertEquals(downloads, result.getDownloads());