@Test
public void willTakeConfigIntoAccountWhenCreatingManager() {

    Config config = new Config().concurrency(88, 42);
    SecurityConfig sec = new SecurityConfig(config);
    PoolingHttpClientConnectionManager manager = sec.createManager();
    assertEquals(88, manager.getMaxTotal());
    assertEquals(42, manager.getDefaultMaxPerRoute());
}