    @Test
    public void parseDAT()
    {

        FakeIPFilter filter = new FakeIPFilter();
        try (InputStream is = IOUtils.toInputStream(dat_file, "UTF-8")) {
            int ruleCount = new IPFilterParser(false).parseDAT(is, filter);
            assertEquals(dat_expected_ranges.length, ruleCount);

            List<Pair<String, String>> ranges = filter.getRanges();
            assertEquals(dat_expected_ranges.length, ranges.size());

            for (int i = 0; i < dat_expected_ranges.length; i++)
                assertEquals(dat_expected_ranges[i], ranges.get(i));

        } catch (Exception e) {
            fail(e.toString());
        }
    }