*/
public class DutchWrongWordInContextRuleTest extends TestCase {
public void testRule() throws IOException {
DutchWrongWordInContextRule rule = new DutchWrongWordInContextRule(null);
JLanguageTool langTool = new JLanguageTool(new Dutch());
// Mine/Miene (example, can be removed)
// assertEquals(0, rule.match(langTool.getAnalyzedSentence("Die Explosion der Mine.")).length); // correct sentence
// assertEquals(1, rule.match(langTool.getAnalyzedSentence("Die Mienen sind gestern Abend explodiert.")).length); // wrong sentence
// assertEquals("Minen", rule.match(langTool.getAnalyzedSentence("Er hat das mit den Mienen weggesprengt."))[0].getSuggestedReplacements().get(0)); // test suggestion