@Test
    public void testBaggageNotNull() {
        RpcInvokeContext ctx = new RpcInvokeContext();
        ctx.putRequestBaggage(null, "value");
        Assert.assertTrue(isEmpty(ctx.getAllRequestBaggage()));
        ctx.putRequestBaggage("key", null);
        Assert.assertTrue(isEmpty(ctx.getAllRequestBaggage()));
        Map<String, String> map = new HashMap<>();
        map.put(null, "value");
        map.put("key", null);
        map.put("key1", "value");
        ctx.putAllRequestBaggage(map);
        Assert.assertNotNull(ctx.getAllRequestBaggage());
        Assert.assertEquals(1, ctx.getAllRequestBaggage().size());
        ctx.putResponseBaggage(null, "value");
        Assert.assertTrue(isEmpty(ctx.getAllResponseBaggage()));
        ctx.putResponseBaggage("key", null);
        Assert.assertTrue(isEmpty(ctx.getAllResponseBaggage()));
        ctx.putAllResponseBaggage(map);
        Assert.assertNotNull(ctx.getAllResponseBaggage());
        Assert.assertEquals(1, ctx.getAllResponseBaggage().size());
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/api/src/test/java/com/alipay/sofa/rpc/context/RpcInvokeContextTest.java