/**
  * Tests setDocument.
  *
  * @throws Exception to JUnit.
  */
 public void testSetDocument() throws Exception {
   URL file = new URL("http://localhost");
   XMLConfigProperties cp1 = prepareProperties();
   XMLConfigProperties cp2 = prepareProperties();
   Namespace ns1 = new Namespace("ns1", file, ConfigManager.CONFIG_MULTIPLE_XML_FORMAT, 5, cp1);
   Namespace ns2 = new Namespace("ns2", file, ConfigManager.CONFIG_MULTIPLE_XML_FORMAT, 5, cp2);
   ns1.setDocument(ns2);
   assertTrue(cp1.getDocument() == cp2.getDocument());
 }