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

        method = Comparable.class.getMethod("compareTo", Object.class);
        request = MessageBuilder.buildSofaRequest(Comparable.class, method,
            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