import java.io.IOException;
public class WhitespaceRuleTest extends TestCase {
public void testRule() throws IOException {
final WhitespaceRule rule = new WhitespaceRule(TestTools.getEnglishMessages(), new Polish());
final JLanguageTool langTool = new JLanguageTool(new Polish());
assertEquals(0, rule.match(langTool.getAnalyzedSentence("To jest test.")).length);
assertEquals(1, rule.match(langTool.getAnalyzedSentence("To jest test.")).length);
}