use of brave.jaxrs2.TracingClientFilter.ClientRequestContextWrapper in project brave by openzipkin.
the class ClientRequestContextWrapperTest method putHeader.
@Test
public void putHeader() {
MultivaluedMap<String, Object> headers = new Headers<>();
when(request.getHeaders()).thenReturn(headers);
new ClientRequestContextWrapper(request).header("name", "value");
assertThat(headers).containsExactly(entry("name", Collections.singletonList("value")));
}
Aggregations