@Test public void sampledLocal() {

  SamplingFlags.Builder flagsBuilder = new SamplingFlags.Builder();
  flagsBuilder.flags |= FLAG_SAMPLED_LOCAL;
  SamplingFlags flags = flagsBuilder.build();
  assertThat(flags).isSameAs(SamplingFlags.EMPTY_SAMPLED_LOCAL);
  assertThat(flags.sampledLocal()).isTrue();
  assertThat(flags.sampled()).isNull();
}