config.addContent(client1); Assert.assertFalse("Should fail, lacks one element", master.equals(authMan.parseRootElem(config))); config.addContent(client2);  Assert.assertTrue("Should be equal", master.equals(authMan.parseRootElem(config)));
config.addContent(client1); Assert.assertFalse("Should fail, lacks one element", master.equals(authMan.parseRootElem(config))); config.addContent(client2);
	public void testParseRootElem() throws IllegalConfigException {		AuthorizationManager authMan = new AuthorizationManager();		Element config = new Element("ClientAuthorizationConfig");		/* Null value */		try {			authMan.parseRootElem(null);			fail("IllegalArgumentException should be raised, null value");		} catch (IllegalArgumentException success) {		}		/* Wrong root */		try {			authMan.parseRootElem(new Element("WrongType"));		} catch (IllegalConfigException success) {		}		Element client1, client2;		client1 = createValidClientElem("client1");		client2 = createValidClientElem("client2");		HashMap master = new HashMap();		master.put("client1", authMan.parseClientElem(client1));		master.put("client2", authMan.parseClientElem(client2));		config.addContent(client1);		Assert.assertFalse("Should fail, lacks one element", master.equals(authMan.parseRootElem(config)));		config.addContent(client2);				Assert.assertTrue("Should be equal", master.equals(authMan.parseRootElem(config)));	}