@Test
public void getAllCurrentDumps() throws IOException {

	wrf.setWebResourceContentsFromResource(
			"https://dumps.wikimedia.org/wikidatawiki/",
			"/wikidatawiki-index-old.html", this.getClass());
	setLocalDump("20140210", DumpContentType.CURRENT, false);
	setLocalDump("20140123", DumpContentType.CURRENT, true);
	setLocalDump("20140106", DumpContentType.DAILY, true);
	setLocalDump("20131201", DumpContentType.CURRENT, true);
	setLocalDump("nodate", DumpContentType.CURRENT, true);
	WmfDumpFileManager dumpFileManager = new WmfDumpFileManager(
			"wikidatawiki", dm, wrf);
	List<? extends MwDumpFile> dumpFiles = dumpFileManager
			.findAllDumps(DumpContentType.CURRENT);
	String[] dumpDates = { "20140210", "20140123", "20140106", "20131221",
			"20131201" };
	boolean[] dumpIsLocal = { false, true, false, false, true };
	assertEquals(dumpFiles.size(), dumpDates.length);
	for (int i = 0; i < dumpFiles.size(); i++) {
		assertEquals(dumpFiles.get(i).getDumpContentType(),
				DumpContentType.CURRENT);
		assertEquals(dumpFiles.get(i).getDateStamp(), dumpDates[i]);
		if (dumpIsLocal[i]) {
			assertTrue(dumpFiles.get(i) instanceof WmfLocalDumpFile);
		} else {
			assertTrue(dumpFiles.get(i) instanceof WmfOnlineStandardDumpFile);
		}
	}
}