@Test
public void should_share_threadlocal_components_with_server() throws Exception {
// first we try the default implementation of the ClientAffinityResource
HttpRequest httpRequest = server.client().GET("/api/clientAffinity");
assertThat(httpRequest.code()).isEqualTo(200);
assertThat(httpRequest.body().trim()).isEqualTo("NONE");
// now we provide a component in thread local, which should be used on the server for this test
overrideComponents().set(ClientAffinityResource.COMPONENT_NAME, "myvalue");
httpRequest = server.client().GET("/api/clientAffinity");
assertThat(httpRequest.code()).isEqualTo(200);