@Test
    public void testOneway() {
        RequestBody b2 = new RequestBody(2, "hello world oneway");

        for (int i = 0; i < 3; i++) {
            try {
                System.setProperty(Configs.SERIALIZER, String.valueOf(i));
                client.oneway(addr, b2);
            } catch (CodecException e) {
                String errMsg = "Codec Exception caught in callback!";
                logger.error(errMsg, e);
                Assert.fail(errMsg);
            } catch (RemotingException e) {
                String errMsg = "Remoting Exception caught in callback!";
                logger.error(errMsg, e);
                Assert.fail(errMsg);
            } catch (InterruptedException e) {
                String errMsg = "Interrupted Exception caught in callback!";
                logger.error(errMsg, e);
                Assert.fail(errMsg);
            }
        }
    }
Codec Test

Test three type serializer [HESSIAN, JAVA, JSON]

note: json need the class have a default constructor

@author jiangping
@version $Id: CodecTest.java, v 0.1 2015-9-7 PM5:00:26 tao Exp $
src/test/java/com/alipay/remoting/rpc/serializer/CodecTest.java