IDataSet actualDataSet = new CsvDataSet(tempDir).getOrdered();
IDataSet actualDataSet = new CsvDataSet(tempDir);
	public void testWrite() throws Exception {				IDataSet expectedDataSet = new CsvDataSet(DATASET_DIR).getOrdered();					File tempDir = createTmpDir();		try {			//modified this test from FlatXmlDataSetTest			CsvDataSet.write(expectedDataSet, tempDir);						File tableOrderingFile = new File(tempDir, CsvDataSet.TABLE_ORDERING_FILE);			assertTrue(tableOrderingFile.exists());						IDataSet actualDataSet = new CsvDataSet(tempDir).getOrdered();						//verify table count			assertEquals("table count", expectedDataSet.getTableNames().length,			actualDataSet.getTableNames().length);						//verify each table			ITable[] expected = DataSetUtils.getTables(expectedDataSet);			ITable[] actual = DataSetUtils.getTables(actualDataSet);			assertEquals("table count", expected.length, actual.length);			for (int i = 0; i < expected.length; i++) {				String expectedName = expected[i].getTableMetaData().getTableName();				String actualName = actual[i].getTableMetaData().getTableName();				assertEquals("table name", expectedName, actualName);								assertTrue("not same instance", expected[i] != actual[i]);				Assertion.assertEquals(expected[i], actual[i]);			}					} finally {			deleteDir(tempDir);		}				assertFalse(tempDir.exists());	}