final String result = check(german, "ein kleiner test. Und wieder Erwarten noch was: \u00f6\u00e4\u00fc\u00df.");
assertTrue(result.contains("UPPERCASE_SENTENCE_START"));
assertTrue(result.contains("WIEDER_WILLEN"));
assertTrue("Expected special chars, got: '" + result + "'",
result.contains("\u00f6\u00e4\u00fc\u00df")); // special chars are intact
final XMLValidator validator = new XMLValidator();
validator.validateXMLString(result, JLanguageTool.getDataBroker().getResourceDir() + "/api-output.dtd", "matches");
validator.checkSimpleXMLString(result);
//System.err.println(result);
// make sure XML chars are escaped in the result to avoid invalid XML
// and XSS attacks:
assertTrue(!check(german, "bla <script>").contains("<script>"));