final RuleMatch[] matches = rule.match(Collections.singletonList(langTool.getAnalyzedSentence(sentence)));
assertEquals(1, matches.length);
}
public void testMultipleSentences() throws IOException {
final JLanguageTool lt = new JLanguageTool(new English());
assertEquals(0, getMatches("This is multiple sentence text that contains a bracket: "
+ "[This is bracket. With some text.] and this continues.\n", lt));
assertEquals(0, getMatches("This is multiple sentence text that contains a bracket. "