BaggageField { public boolean updateValue(@Nullable TraceContext context, @Nullable String value) { if (context == null) return false; if (this.context.updateValue(this, context, value)) { CorrelationFlushScope.flush(this, value); return true; } return false; } BaggageField(String name, BaggageContext context); static BaggageField create(String name); @Deprecated static List<BaggageField> getAll(@Nullable TraceContext context); @Deprecated static List<BaggageField> getAll(TraceContextOrSamplingFlags extracted); @Deprecated @Nullable static List<BaggageField> getAll(); static Map<String, String> getAllValues(@Nullable TraceContext context); static Map<String, String> getAllValues(TraceContextOrSamplingFlags extracted); @Nullable static Map<String, String> getAllValues(); @Nullable static BaggageField getByName(@Nullable TraceContext context, String name); @Nullable static BaggageField getByName(TraceContextOrSamplingFlags extracted,
      String name); @Nullable static BaggageField getByName(String name); final String name(); @Nullable String getValue(@Nullable TraceContext context); @Nullable String getValue(); @Nullable String getValue(TraceContextOrSamplingFlags extracted); boolean updateValue(@Nullable TraceContext context, @Nullable String value); boolean updateValue(TraceContextOrSamplingFlags extracted, @Nullable String value); boolean updateValue(String value); @Override String toString(); @Override final boolean equals(Object o); @Override final int hashCode();  }
@Test public void updateValue_context_null() { REQUEST_ID.updateValue((TraceContext) null, null); }
@Test public void updateValue_extracted_invalid() { assertThatThrownBy(() -> REQUEST_ID.updateValue((TraceContextOrSamplingFlags) null, null)) .isInstanceOf(NullPointerException.class); }