@Test
    public void buildSofaRequest() throws Exception {
        SofaRequest request = MessageBuilder.buildSofaRequest(Number.class, "intValue",
            new Class[0], CodecUtils.EMPTY_OBJECT_ARRAY);
        Assert.assertEquals(request.getInterfaceName(), Number.class.getName());
        Assert.assertEquals(request.getMethodName(), "intValue");
        Assert.assertArrayEquals(CodecUtils.EMPTY_OBJECT_ARRAY, request.getMethodArgs());
        Assert.assertArrayEquals(StringUtils.EMPTY_STRING_ARRAY, request.getMethodArgSigs());

        request = MessageBuilder.buildSofaRequest(Comparable.class, "compareTo",
            new Class[] { Object.class }, new Object[] { null });
        Assert.assertEquals(request.getInterfaceName(), Comparable.class.getName());
        Assert.assertEquals(request.getMethodName(), "compareTo");
        Assert.assertArrayEquals(request.getMethodArgs(), new Object[] { null });
        Assert.assertArrayEquals(request.getMethodArgSigs(), new String[] { "java.lang.Object" });
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/api/src/test/java/com/alipay/sofa/rpc/message/MessageBuilderTest.java