assertTrue(!check(german, "bla <script>").contains("<script>"));
// other tests for special characters
final String germanSpecialChars = check(german, "ein kleiner test. Und wieder Erwarten noch was: öäüß+ öäüß.");
assertTrue("Expected special chars, got: '" + germanSpecialChars + "'", germanSpecialChars.contains("öäüß+"));
final String romanianSpecialChars = check(new Romanian(), "bla bla șțîâă șțîâă și câteva caractere speciale");
assertTrue("Expected special chars, got: '" + romanianSpecialChars + "'", romanianSpecialChars.contains("șțîâă"));
final Polish polish = new Polish();
final String polishSpecialChars = check(polish, "Mówiła długo, żeby tylko mówić mówić długo.");
assertTrue("Expected special chars, got: '" + polishSpecialChars+ "'", polishSpecialChars.contains("mówić"));
// test http POST
assertTrue(checkByPOST(new Romanian(), "greșit greșit").contains("greșit"));
// test supported language listing
final URL url = new URL("http://localhost:" + DEFAULT_PORT + "/Languages");
final String languagesXML = StringTools.streamToString((InputStream) url.getContent(), "UTF-8");
if (!languagesXML.contains("Romanian") || !languagesXML.contains("English")) {
fail("Error getting supported languages: " + languagesXML);