@Test
public void validDumpProperties() throws IOException {

	String dateStamp = "20140220";
	wrf.setWebResourceContents(
			"https://dumps.wikimedia.org/other/incr/wikidatawiki/"
					+ dateStamp + "/status.txt", "done");
	wrf.setWebResourceContents(
			"https://dumps.wikimedia.org/other/incr/wikidatawiki/"
					+ dateStamp + "/wikidatawiki-" + dateStamp
					+ "-pages-meta-hist-incr.xml.bz2", "Line1",
			CompressionType.BZ2);
	WmfOnlineDailyDumpFile dump = new WmfOnlineDailyDumpFile(dateStamp,
			"wikidatawiki", wrf, dm);
	BufferedReader br = dump.getDumpFileReader();
	assertEquals(br.readLine(), "Line1");
	assertNull(br.readLine());
	assertTrue(dump.isAvailable());
	assertTrue(dump.isAvailable()); // second time should use cached entry
	assertEquals(dateStamp, dump.getDateStamp());
	assertEquals("wikidatawiki", dump.getProjectName());
	assertEquals("wikidatawiki-daily-" + dateStamp, dump.toString());
	assertEquals(DumpContentType.DAILY, dump.getDumpContentType());
}