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