@Test
public void testUnmappableInputActionReplace() throws Exception {
String s = "This text contains a circumflex \u0302 !!!";
CharsetEncoder encoder = Consts.ISO_8859_1.newEncoder();
encoder.onMalformedInput(CodingErrorAction.IGNORE);
encoder.onUnmappableCharacter(CodingErrorAction.REPLACE);
SessionOutputBuffer outbuf = new SessionOutputBufferImpl(1024, 16, encoder, this.allocator);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
WritableByteChannel channel = newChannel(baos);
outbuf.writeLine(s);