public void testEmptyRowCheck() {
        DataSet ds;
        final String cols = "column1,column2,column3\r\n,,";

        // check to see if the flag empty rows works
        Parser p = DefaultParserFactory.getInstance().newDelimitedParser(new StringReader(cols), ',', FPConstants.NO_QUALIFIER);
        p.setFlagEmptyRows(true);
        ds = p.parse();
        ds.next();
        assertEquals("Row should return empty...", ds.isRowEmpty(), true);

        // do not set to flag empty rows, but make the check anyhow to make sure we get an exception
        p = DefaultParserFactory.getInstance().newDelimitedParser(new StringReader(cols), ',', FPConstants.NO_QUALIFIER);
        ds = p.parse();
        ds.next();
        try {
            ds.isRowEmpty();
            fail("should have got FPInvalidUsageException...");
        } catch (final FPInvalidUsageException e) {
        }

    }