@Test
public void testAddParameter() throws Exception {

    final URI uri = new URI("http://jvoicexml.org");
    final DocumentDescriptor descriptor =
        new DocumentDescriptor(uri);
    final String name1 = "name1";
    final String value1 = "value1";
    final KeyValuePair pair1 = new KeyValuePair(name1, value1);
    Assert.assertFalse("exected to get no value",
            descriptor.getParameters().contains(pair1));
    descriptor.addParameter(pair1);
    Assert.assertTrue(descriptor.getParameters().contains(pair1));
    final String name2 = "name2";
    final String value2 = "value2";
    final KeyValuePair pair2 = new KeyValuePair(name2, value2);
    Assert.assertFalse("exected to get no value",
            descriptor.getParameters().contains(pair2));
    descriptor.addParameter(pair2);
    Assert.assertTrue(descriptor.getParameters().contains(pair1));
    Assert.assertTrue(descriptor.getParameters().contains(pair2));
}