@Test
    public void testCarryWithRequest() {
        SofaRequest sofaRequest = new SofaRequest();
        RpcInvokeContext context = RpcInvokeContext.getContext();
        context.putRequestBaggage(KEY, VALUE);
        BaggageResolver.carryWithRequest(context, sofaRequest);
        Object baggage = sofaRequest.getRequestProp(RemotingConstants.RPC_REQUEST_BAGGAGE);
        assertNotNull(baggage);
        assertEquals(HashMap.class, baggage.getClass());
        assertEquals(VALUE, ((Map) baggage).get(KEY));
    }
@author <a href=mailto:orezsilence@163.com>zhangchengxi</a>
core/api/src/test/java/com/alipay/sofa/rpc/context/BaggageResolverTest.java