@Test
public void sample() {

    samplerProperties.setPercentage(0);
    SamplingStatus sampleStatusFalse = sofaTracerPercentageBasedSampler.sample(sofaTracerSpan);
    Assert.assertTrue(!sampleStatusFalse.isSampled());
    samplerProperties.setPercentage(100);
    SamplingStatus sampleStatusTrue = sofaTracerPercentageBasedSampler.sample(sofaTracerSpan);
    Assert.assertTrue(sampleStatusTrue.isSampled());
}