@Test
public void getAllRelevantDumps() throws IOException {

	wrf.setWebResourceContentsFromResource(
			"https://dumps.wikimedia.org/other/incr/wikidatawiki/",
			"/other-incr-wikidatawiki-index.html", this.getClass());
	wrf.setWebResourceContentsFromResource(
			"https://dumps.wikimedia.org/wikidatawiki/",
			"/wikidatawiki-index-old.html", this.getClass());
	wrf.setWebResourceContentsFromResource(
			"https://dumps.wikimedia.org/wikidatawiki/20140210/wikidatawiki-20140210-md5sums.txt",
			"/wikidatawiki-20140210-md5sums.txt", this.getClass());
	setLocalDump("20140220", DumpContentType.DAILY, true);
	setLocalDump("20140219", DumpContentType.FULL, true);
	setLocalDump("20140205", DumpContentType.DAILY, true);
	WmfDumpFileManager dumpFileManager = new WmfDumpFileManager(
			"wikidatawiki", dm, wrf);
	List<? extends MwDumpFile> dumpFiles = dumpFileManager
			.findAllRelevantRevisionDumps(true);
	String[] dumpDates = { "20140221", "20140220", "20140219", "20140218",
			"20140217", "20140216", "20140215", "20140214", "20140213",
			"20140212", "20140211", "20140210" };
	boolean[] dumpIsLocal = { false, true, false, false, false, false,
			false, false, false, false, false, false };
	assertEquals(dumpFiles.size(), dumpDates.length);
	for (int i = 0; i < dumpFiles.size(); i++) {
		if (i == dumpFiles.size() - 1) {
			assertEquals(dumpFiles.get(i).getDumpContentType(),
					DumpContentType.CURRENT);
		} else {
			assertEquals(dumpFiles.get(i).getDumpContentType(),
					DumpContentType.DAILY);
		}
		assertEquals(dumpFiles.get(i).getDateStamp(), dumpDates[i]);
		if (dumpIsLocal[i]) {
			assertTrue(dumpFiles.get(i) instanceof WmfLocalDumpFile);
		} else {
			assertFalse(dumpFiles.get(i) instanceof WmfLocalDumpFile);
		}
	}
}