@Test
public void testBaggageItems() throws Exception {

    SofaTracerSpanContext sofaTracerSpanContext1 = new SofaTracerSpanContext("traceId",
        "spanId", "parentId", false);
    Map<String, String> expected = new HashMap<String, String>();
    sofaTracerSpanContext1.setBizBaggageItem("baggage1", "value1");
    sofaTracerSpanContext1.setBizBaggageItem("baggage2", "value2");
    sofaTracerSpanContext1.setSysBaggageItem("sys1", "sysvalue1");
    sofaTracerSpanContext1.setSysBaggageItem("sys2", "sysvalue2");
    expected.put("baggage1", "value1");
    expected.put("baggage2", "value2");
    expected.put("sys1", "sysvalue1");
    expected.put("sys2", "sysvalue2");
    Iterable<Map.Entry<String, String>> entrySet = sofaTracerSpanContext1.baggageItems();
    Map<String, String> map = new HashMap<String, String>();
    for (Map.Entry<String, String> entry : entrySet) {
        map.put(entry.getKey(), entry.getValue());
    }
    assertEquals(4, map.size());
    assertEquals(expected, map);
}