@Test
public void testMalformedChunk() throws Exception {
final String s = "5\r\n01234----------------------------------------------------------" +
"-----------------------------------------------------------------------------" +
"-----------------------------------------------------------------------------";
final ReadableByteChannel channel = new ReadableByteChannelMock(
new String[] {s}, Consts.ASCII);
final SessionInputBuffer inbuf = new SessionInputBufferImpl(32, 32, Consts.ASCII);
final HttpTransportMetricsImpl metrics = new HttpTransportMetricsImpl();
final ChunkDecoder decoder = new ChunkDecoder(channel, inbuf, metrics);