@Test
	public void testOpenFile() {

		DataFile dataFile = new DataFile("empty-toplevel", null);
		dataFile.openFile();

		assertTrue(dataFile.getType() == DataFileType.CSV);

		dataFile = new DataFile("com/zavazoo/dingo/empty-nested", null);
		dataFile.openFile();

		assertTrue(dataFile.getType() == DataFileType.TSV);

		dataFile = new DataFile("com/zavazoo/dingo/empty-scenarios", null);
		dataFile.openFile();

		assertTrue(dataFile.getType() == DataFileType.BSV);

		dataFile = new DataFile("non-existent", null);

		try {

			dataFile.openFile();

			fail();

		} catch (DingoException expected) {
		}

	}