@Deprecated @Test public void deprecated_builder_invalid() {

  TraceContextOrSamplingFlags.Builder builder = TraceContextOrSamplingFlags.newBuilder();
  assertThatThrownBy(builder::build)
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("Value unset. Use a non-deprecated newBuilder method instead.");
}