@Test
    public void testPickupFromRequest() {
        SofaRequest sofaRequest = new SofaRequest();
        RpcInvokeContext context = RpcInvokeContext.getContext();
        context.putRequestBaggage(KEY, VALUE);
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put(null, "null");
        hashMap.put(KEY, VALUE);
        sofaRequest.addRequestProp(RemotingConstants.RPC_REQUEST_BAGGAGE, hashMap);
        BaggageResolver.pickupFromRequest(context, sofaRequest);
        assertEquals(VALUE, RpcInvokeContext.getContext().getAllRequestBaggage().get(KEY));
        assertEquals(null, RpcInvokeContext.getContext().getAllRequestBaggage().get(null));
        assertEquals(1, RpcInvokeContext.getContext().getAllRequestBaggage().size());
        assertEquals(SafeConcurrentHashMap.class, RpcInvokeContext.getContext().getAllRequestBaggage().getClass());
    }
@author <a href=mailto:orezsilence@163.com>zhangchengxi</a>
core/api/src/test/java/com/alipay/sofa/rpc/context/BaggageResolverTest.java