public class SlovakVesRuleTest extends TestCase {
public void testRule() throws IOException {
final SlovakVesRule rule = new SlovakVesRule(null);
RuleMatch[] matches;
JLanguageTool langTool = new JLanguageTool(new Slovak());
//correct
matches = rule.match(langTool.getAnalyzedSentence("Navštívil Záhorskú Ves."));
assertEquals(0, matches.length);
matches = rule.match(langTool.getAnalyzedSentence("Aj v Karlovej Vesi sme doma."));