code: @Test(expected=IOException.class) public void testDecode_UPorDOWN_WithError() throws IOException {
    url=url.addParameter(AbstractMockChannel.ERROR_WHEN_SEND,Boolean.TRUE.toString());
    AbstractMockChannel channel=getServerSideChannel(url);
    testDecode_assertEquals(channel,UP,Codec2.DecodeResult.NEED_MORE_INPUT,null);
    String request1="aaa\n";
    Object expected1="aaa";
    testDecode_assertEquals(channel,request1,expected1,null);
    testDecode_assertEquals(channel,UP,Codec2.DecodeResult.NEED_MORE_INPUT,expected1);
    url=url.removeParameter(AbstractMockChannel.ERROR_WHEN_SEND);
  }
  