@Test public void sampler() {

  Sampler sampler = new Sampler() {
    @Override public boolean isSampled(long traceId) {
      return false;
    }
  };
  tracer = Tracing.newBuilder().sampler(sampler).build().tracer();
  assertThat(tracer.sampler)
    .isSameAs(sampler);
}