diff --git a/src/java/org/apache/solr/common/util/NamedList.java b/src/java/org/apache/solr/common/util/NamedList.java index c465a11dc7f..a918fd8e41b 100644 --- a/src/java/org/apache/solr/common/util/NamedList.java +++ b/src/java/org/apache/solr/common/util/NamedList.java @@ -117,6 +117,16 @@ public class NamedList implements Cloneable, Serializable, Iterable nl = new NamedList(); + nl.add("key1", "value1"); + nl.add("key2", "value2"); + assertEquals(2, nl.size()); + String value = nl.remove(0); + assertEquals("value1", value); + assertEquals(1, nl.size()); + } +}