@Test
public void testClose() throws Exception {

    SofaTracerSpan span = (SofaTracerSpan) this.sofaTracer.buildSpan("testWithTimestamp")
        .withStartTimestamp(111).start();
    //close
    span.close();
    long endTime = System.currentTimeMillis();
    assertTrue("Endtime : " + endTime + ", Duration :" + span.getDurationMicroseconds(),
        111 < span.getDurationMicroseconds() && span.getDurationMicroseconds() < endTime);
}