new PropertyList("list", new PropertyMap("map", new PropertySimple("prop1", "value1"), new PropertySimple(
"prop2", "value1")), new PropertyMap("map", new PropertySimple("prop1", "value2"), new PropertySimple(
"prop2", "value2")));
config.put(list);
ConfigurationInstanceDescriptor instance =
ConfigurationInstanceDescriptorUtil.createConfigurationInstance(def, config);
assertEquals(instance.getConfigurationProperty().size(), 1,
"Unexpected number of properties in configuration instance.");
ListPropertyInstanceDescriptor listInstance =
(ListPropertyInstanceDescriptor) instance.getConfigurationProperty().get(0).getValue();
assertEquals(listInstance.getName(), "list", "Unexpected list instance name");
assertEquals(listInstance.getLongDescription(), "list descr", "Unexpected list instance description");
assertTrue(listInstance.isRequired(), "Unexpected list instance required flag");