@Test public void testSamplingOnAlwaysSamples() { Sampling sampler = Sampling.ON; for (int i = 0; i < 10; i++) { assertTrue(sampler.trace()); } }
public abstract boolean trace();
Sampling { public abstract boolean trace(); }
Sampling { public abstract boolean trace();  }
Sampling { public abstract boolean trace();  abstract boolean trace(); static Sampling valueOf(String samplerName); }
Sampling { public abstract boolean trace();  abstract boolean trace(); static Sampling valueOf(String samplerName); static final Sampling ON; static final Sampling OFF; }