public class RussianUnpairedBracketsRuleTest extends TestCase {
public void testRuleRussian() throws IOException {
RussianUnpairedBracketsRule rule = new RussianUnpairedBracketsRule(TestTools
.getEnglishMessages(), new Russian());
RuleMatch[] matches;
JLanguageTool langTool = new JLanguageTool(new Russian());
// correct sentences:
matches = rule.match(Collections.singletonList(langTool
.getAnalyzedSentence("(О жене и детях не беспокойся, я беру их на свои руки).")));
assertEquals(0, matches.length);
// correct sentences: