@Test
public void testSerializeSpanContext() throws Exception {

    SofaTracerSpanContext sofaTracerSpanContext1 = new SofaTracerSpanContext("traceId",
        "spanId", "parentId", false);
    String serialized = sofaTracerSpanContext1.serializeSpanContext();
    SofaTracerSpanContext deserialized = SofaTracerSpanContext
        .deserializeFromString(serialized);
    assertEquals("traceId", deserialized.getTraceId());
    assertEquals("spanId", deserialized.getSpanId());
    assertEquals("parentId", deserialized.getParentId());
    assertFalse(deserialized.isSampled());
}