### Question:
DatasourceInMemoryServiceHelper { public static List<List<String>> getCsvDataSample( String fileLocation, boolean headerPresent, String delimiter, String enclosure, int rowLimit ) { String line = null; int row = 0; List<List<String>> dataSample = new ArrayList<List<String>>( rowLimit ); File file = new File( fileLocation ); BufferedReader bufRdr = null; try { bufRdr = new BufferedReader( new FileReader( file ) ); } catch ( FileNotFoundException e ) { logger.error( Messages.getErrorString( "DatasourceInMemoryServiceHelper.ERROR_0006_FILE_NOT_FOUND", fileLocation ), e ); } try { if ( bufRdr != null ) { while ( ( line = bufRdr.readLine() ) != null && row < rowLimit ) { StringTokenizer st = new StringTokenizer( line, delimiter ); List<String> rowData = new ArrayList<String>(); while ( st.hasMoreTokens() ) { rowData.add( st.nextToken() ); } if ( headerPresent && row != 0 || !headerPresent ) { dataSample.add( rowData ); } row++; } bufRdr.close(); } } catch ( IOException e ) { logger.error( Messages.getErrorString( "DatasourceInMemoryServiceHelper.ERROR_0007_DO_NOT_HAVE_ACCESS_TO_FILE", fileLocation ), e ); } return dataSample; }  static java.sql.Connection getDataSourceConnection( String connectionName ); static SQLConnection getConnection( String connectionName ); static SerializedResultSet getSerializeableResultSet( String connectionName, String query, int rowLimit,
                                                               IPentahoSession session ); static List<List<String>> getCsvDataSample( String fileLocation, boolean headerPresent, String delimiter,
                                                     String enclosure, int rowLimit );  }### Answer:
@Test public void testGetCsvDataSample_FileNotFound() { List<List<String>> actualList = DatasourceInMemoryServiceHelper.getCsvDataSample( "File not found", true, "", "\"", 1 ); assertNotNull( actualList ); assertTrue( actualList.isEmpty() ); }