public void testMalformedCharacters() throws Exception {
String s1 = constructString(SWISS_GERMAN_HELLO);
SessionOutputBuffer outbuf = new SessionOutputBuffer(1024, 16);
try {
outbuf.writeLine(s1);
fail("Expected CharacterCodingException");
} catch (CharacterCodingException expected) {
}
byte[] tmp = s1.getBytes("ISO-8859-1");