@@ -0,0 +1,1137 @@
+package org.skywalking.apm.agent.core.context;%0A%0Aimport java.util.Map;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A * @author wusheng%0A */%0Apublic class LeafSpanTestCase %7B%0A    @Test%0A    public void testLeaf() %7B%0A        LeafSpan span = new LeafSpan(0, %22serviceA%22, System.currentTimeMillis());%0A        span.push();%0A        span.setOperationName(%22serviceA2%22);%0A        span.setTag(%22key%22, %22value-text%22);%0A        span.setTag(%22key2%22, false);%0A        span.setTag(%22key3%22, 1);%0A%0A        //start 2nd span%0A        span.push();%0A%0A        Assert.assertFalse(span.isFinished());%0A        Assert.assertTrue(span.isLeaf());%0A        span.setOperationName(%22service123%22);%0A        span.setTag(%22key%22, %22value-text2%22);%0A        span.setTag(%22key2%22, true);%0A        span.setTag(%22key3%22, 2);%0A        Assert.assertEquals(%22serviceA2%22, span.getOperationName());%0A        Assert.assertEquals(%22value-text%22, span.getStrTag(%22key%22));%0A        Assert.assertFalse(span.getBoolTag(%22key2%22));%0A        Assert.assertEquals(1, span.getIntTag(%22key3%22).intValue());%0A%0A        //end 2nd span%0A        span.pop();%0A%0A        span.pop();%0A        Assert.assertTrue(span.isFinished());%0A    %7D%0A%7D%0A

Add test case for leaf span.