@Test
public void testMalformedInputActionReplace() throws Exception {
final byte[] tmp = constructString(SWISS_GERMAN_HELLO).getBytes(Consts.ISO_8859_1);
final CharsetDecoder decoder = Consts.UTF_8.newDecoder();
decoder.onMalformedInput(CodingErrorAction.REPLACE);
decoder.onUnmappableCharacter(CodingErrorAction.IGNORE);
final SessionInputBufferMock inbuffer = new SessionInputBufferMock(tmp, decoder);
final String s = inbuffer.readLine();
Assert.assertEquals("Gr\ufffdezi_z\ufffdm\ufffd", s);
}