/**
* Failure test case: Build a 500-row CSV data set using less than 1 byte of memory.
*/
@Test
public void testDataSetSizeExceeded() throws Exception {
DataSetSettings dataSetSettings = DataProviderServices.lookup().getDataSetSettings();
dataSetSettings.setMaxDataSetLoadTimeInMillis(-1); // Disable load time checking.
dataSetSettings.setMaxDataSetSizeInBytes(1);
try {
buildDataSet(10, dataProvider, dataLoader);
failBecauseExceptionWasNotThrown(DataSetException.class);
} catch (DataSetException e) {