### Question:
SubtitleListLuceneAnalyzer { public void run(SubtitleList subs) throws EasyJaSubException { List<String> pronunciationErrors = new ArrayList<String>(); try { LuceneParser parser = new LuceneParser(false); for (SubtitleLine line : subs) { if (line.getJapaneseSubKey() != null) { parseLine(pronunciationErrors, parser, line); } } parser.close(); } catch (IOException ex) { throw new EasyJaSubException("I/O Error while parsing", ex); } if (pronunciationErrors.size() > 0) { observer.onLuceneErrors(pronunciationErrors); } } SubtitleListLuceneAnalyzer(EasyJaSubObserver observer); void run(SubtitleList subs);  }### Answer:
@Test public void testSample4() throws Exception { File fileJa = getSampleFile("sample4.ass"); SubtitleList s = new SubtitleList(); Observer observer = new Observer(); new SubtitleListJapaneseSubFileReader().readJapaneseSubtitles(s, fileJa, SubtitleFileType.ASS, observer, null); new SubtitleListLuceneAnalyzer(observer).run(s); }
@Test public void testSample5() throws Exception { File fileJa = getSampleFile("sample5.ass"); SubtitleList s = new SubtitleList(); Observer observer = new Observer(); new SubtitleListJapaneseSubFileReader().readJapaneseSubtitles(s, fileJa, SubtitleFileType.ASS, observer, null); new SubtitleListLuceneAnalyzer(observer).run(s); }
@Test public void testTicket2Row() throws Exception { SubtitleList s = new SubtitleList(); Observer observer = new Observer(); s.add().setSubText("その金で 弁護士の最高ステータス\n虎ノ門に事務所を構えたい"); new SubtitleListLuceneAnalyzer(observer).run(s); }