### Question:
TraceState { @Nullable public String get(String key) { for (Entry entry : getEntries()) { if (entry.getKey().equals(key)) { return entry.getValue(); } } return null; } TraceState(); static TraceState getDefault(); @Nullable String get(String key); abstract List<Entry> getEntries(); static Builder builder(); Builder toBuilder(); static final int MAX_VENDOR_ID_SIZE; }### Answer:
@Test void get() { assertThat(firstTraceState.get(FIRST_KEY)).isEqualTo(FIRST_VALUE); assertThat(secondTraceState.get(SECOND_KEY)).isEqualTo(SECOND_VALUE); assertThat(multiValueTraceState.get(FIRST_KEY)).isEqualTo(FIRST_VALUE); assertThat(multiValueTraceState.get(SECOND_KEY)).isEqualTo(SECOND_VALUE); }