### Question:
ProxiedEntityRequestConfig implements RequestConfig { @Override public Map<String, String> getHeaders() { final String proxiedEntitiesValue = getProxiedEntitesValue(proxiedEntities); final Map<String,String> headers = new HashMap<>(); if (proxiedEntitiesValue != null) { headers.put(ProxiedEntitiesUtils.PROXY_ENTITIES_CHAIN, proxiedEntitiesValue); } return headers; } ProxiedEntityRequestConfig(final String... proxiedEntities); @Override Map<String, String> getHeaders();  }### Answer:
@Test public void testSingleProxiedEntity() { final String proxiedEntity = "user1"; final String expectedProxiedEntitiesChain = "<user1>"; final RequestConfig requestConfig = new ProxiedEntityRequestConfig(proxiedEntity); 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); }
@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); }