@Test
    public void testResponseSerialRuntimeException() throws Exception {
        NormalRequestBodyCustomSerializer s1 = new NormalRequestBodyCustomSerializer();
        ExceptionStringCustomSerializer s2 = new ExceptionStringCustomSerializer(false, true,
            false, false);
        CustomSerializerManager.registerCustomSerializer(RequestBody.class.getName(), s1);
        CustomSerializerManager.registerCustomSerializer(String.class.getName(), s2);

        RequestBody body = new RequestBody(1, "hello world!");
        String ret = null;
        try {
            ret = (String) client.invokeSync(addr, body, 1000);
            Assert.fail("Should not reach here!");
        } catch (SerializationException e) {
            logger.error("", e);
            Assert.assertTrue(e.isServerSide());
            Assert.assertEquals(null, ret);
            Assert.assertTrue(s1.isSerialized());
            Assert.assertTrue(s1.isDeserialized());
            Assert.assertTrue(s2.isSerialized());
            Assert.assertFalse(s2.isDeserialized());
        } catch (Throwable t) {
            Assert.fail("Should not reach here!");
        }
    }
test RuntimeException when serial response
@throws Exception
src/test/java/com/alipay/remoting/rpc/serializer/ClassCustomSerializerTest.java