public class ElwithFemRuleTest extends TestCase {
public void testRule() throws IOException {
ElwithFemRule rule = new ElwithFemRule(null);
RuleMatch[] matches;
JLanguageTool langTool = new JLanguageTool(new Spanish());
// correct sentences:
matches = rule.match(langTool.getAnalyzedSentence("El alma inmortal."));
assertEquals(0, matches.length);
matches = rule.match(langTool.getAnalyzedSentence("Tomaré un agua."));
assertEquals(0, matches.length);