TraceContext extends SamplingFlags { public Builder toBuilder() { return new Builder(this); } TraceContext(
    int flags,
    long traceIdHigh,
    long traceId,
    long localRootId,
    long parentId,
    long spanId,
    List<Object> extraList
  ); static Builder newBuilder(); long traceIdHigh(); long traceId(); long localRootId(); boolean isLocalRoot(); @Nullable final Long parentId(); long parentIdAsLong(); long spanId(); boolean shared(); List<Object> extra(); @Nullable T findExtra(Class<T> type); Builder toBuilder(); String traceIdString(); @Nullable String parentIdString(); @Nullable String localRootIdString(); String spanIdString(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void canSetSampledNull() { base = base.toBuilder().sampled(true).build(); TraceContext objects = base.toBuilder().sampled(null).build(); assertThat(objects.debug()) .isFalse(); assertThat(objects.sampled()) .isNull(); }