/// <summary>
 /// Populates the internal collection of registered
 /// <see cref="Scheme">protocol schemes</see>
 /// with the content of the map passed as a parameter.
 /// </summary>
 /// <param name="map">protocol schemes</param>
 public void SetItems(IDictionary <string, Apache.Http.Conn.Scheme.Scheme> map)
 {
     if (map == null)
     {
         return;
     }
     registeredSchemes.Clear();
     registeredSchemes.PutAll(map);
 }
 public void TestPutAll()
 {
     ConcurrentHashMap<Object, Object> empty = new ConcurrentHashMap<Object, Object>();
     ConcurrentHashMap<Object, Object> map = map5();
     empty.PutAll(map);
     Assert.AreEqual(5, empty.Size());
     Assert.IsTrue(empty.ContainsKey(one));
     Assert.IsTrue(empty.ContainsKey(two));
     Assert.IsTrue(empty.ContainsKey(three));
     Assert.IsTrue(empty.ContainsKey(four));
     Assert.IsTrue(empty.ContainsKey(five));
 }