public static Test suite() {
        TestSuite suite = new TestSuite(MorfeuszTagsTest.class.getName());

        try {
            LineNumberReader reader =
                new LineNumberReader(
                    new InputStreamReader(
                            MorfeuszTagsTest.class.getResourceAsStream(
                                    "tokens.samples.ipi-wstepny.txt"), "UTF-8"));
            try {
                Analyzer analyzer = Morfeusz.getInstance().getAnalyzer();

                do {
                    String ipiTag = reader.readLine();
                    if (ipiTag == null || ipiTag.trim().length() == 0)
                        break;

                    String word;
                    do {
                        word = reader.readLine();
                        if (word.trim().length() == 0)
                            break;
                        InterpMorf [] analysis = analyzer.analyze(word.getBytes("iso8859-2"));
                        for (int i = 0; i < analyzer.getTokensNumber(); i++) {
                            byte [] tagBytes = analysis[i].getTag();
                            if (tagBytes == null) continue;
                            String tag = new String(tagBytes, 0, analysis[i].getTagLength());
                            // System.out.println(ipiTag + ", " + word + ", " + tag);

                            if (tag.length() > 0) {
                                suite.addTest(new TagParser("Parsing: '" + tag + "', ipi: '" + ipiTag + "' (" + word + ")", tag));
                            }
                        }
                    } while (true);
                } while (true);
            } finally {
                reader.close();
            }
        } catch (IOException e) {
            throw new RuntimeException("Could not read tags resource.");
        }
                
        return suite;
    }