@Test
	public void testReport() {

		String newline = System.getProperty("line.separator");

		String name = "com/zavazoo/dingo/three-scenarios";

		StringBuilder expected = new StringBuilder();

		expected.append(DataFile.REPORT_PREFIX);
		expected.append(name);
		expected.append(".1: result1, criteria1-1, criteria1-2");
		expected.append(newline);

		expected.append(DataFile.REPORT_PREFIX);
		expected.append(name);
		expected.append(".2: result2, criteria2-1, criteria2-2");
		expected.append(newline);

		expected.append(DataFile.REPORT_PREFIX);
		expected.append(name);
		expected.append(".3: result3, criteria3-1, criteria3-2");
		expected.append(newline);

		ByteArrayOutputStream buffer = new ByteArrayOutputStream();

		PrintStream mock = new PrintStream(buffer);

		DataFile dataFile = new DataFile(name, mock);
		dataFile.openFile();

		assertNotNull(dataFile.nextScenario());
		assertNotNull(dataFile.nextScenario());
		assertNotNull(dataFile.nextScenario());

		String actual = buffer.toString();

		assertThat(actual, equalTo(expected.toString()));

	}