    @Test
    public void testLoadCrazyFile() throws IOException {

        String[] files = new String[]{"/com/gooddata/util/crazy.csv", "/com/gooddata/util/crazy.csv.win"};
        for (final String f : files) {
            Reader reader = new InputStreamReader(
                    CSVReaderTest.class.getResourceAsStream(f),
                    "utf8");
            CSVReader csv = new CSVReader(reader);

            final int expectedRows = 6;
            int i = 0;
            String[] line = null;
            while ((line = csv.readNext()) != null) {
                i++;
                Assert.assertEquals(f + ":" + i, 4, line.length);
                if (i == expectedRows) {
                    for (Integer j = 1; j <= 4; j++) {
                        Assert.assertEquals(j.toString(), line[j - 1]);
                    }
                }
            }
            Assert.assertEquals(f, expectedRows, i);
        }
    }