@Test
public void testMultipleProxiedEntity() {

    final String proxiedEntity1 = "user1";
    final String proxiedEntity2 = "user2";
    final String proxiedEntity3 = "user3";
    final String expectedProxiedEntitiesChain = "<user1><user2><user3>";
    final RequestConfig requestConfig = new ProxiedEntityRequestConfig(
            proxiedEntity1, proxiedEntity2, proxiedEntity3);
    final Map<String,String> headers = requestConfig.getHeaders();
    assertNotNull(headers);
    assertEquals(1, headers.size());
    final String proxiedEntitiesChainHeaderValue = headers.get(ProxiedEntitiesUtils.PROXY_ENTITIES_CHAIN);
    assertEquals(expectedProxiedEntitiesChain, proxiedEntitiesChainHeaderValue);
}