public static void carryWithResponse(RpcInvokeContext context, SofaResponse response) {
        if (context != null) {
            Map<String, String> responseBaggage = context.getAllResponseBaggage();
            if (CommonUtils.isNotEmpty(responseBaggage)) {
                String prefix = RemotingConstants.RPC_RESPONSE_BAGGAGE + ".";
                for (Map.Entry<String, String> entry : responseBaggage.entrySet()) {
                    response.addResponseProp(prefix + entry.getKey(), entry.getValue());
                }
            }
        }
    }
@Test
    public void testCarryWithResponse() {
        SofaResponse sofaResponse = new SofaResponse();
        RpcInvokeContext context = RpcInvokeContext.getContext();
        context.putResponseBaggage(KEY, VALUE);
        BaggageResolver.carryWithResponse(context, sofaResponse);
        String baggage = (String) sofaResponse.getResponseProp(RemotingConstants.RPC_RESPONSE_BAGGAGE
            + "." + KEY);
        assertNotNull(baggage);
        assertEquals(VALUE, baggage);
    }