@Test
public void testOnClientResponse() throws Exception {
RequestIdProvider provider = new HttpRequestIdProvider("request_id", CORRELATOR);
AttributeMap attributeMap = new DefaultAttributeMap();
ContextKeySupplier keySupplier = new MapBackedKeySupplier(new HashMap<String, String>());
String expectedId = "daah";
CORRELATOR.onNewServerRequest(expectedId, new ContextsContainerImpl(keySupplier));
String requestId = provider.beforeClientRequest(attributeMap);
Assert.assertSame("Unexpected request Id", expectedId, requestId);
Assert.assertSame("Unexpected request Id on client response.", expectedId, provider.onClientResponse(attributeMap));