diff --git a/src/test/java/org/apache/commons/jxpath/TestBean.java b/src/test/java/org/apache/commons/jxpath/TestBean.java index 421b8dfcb..8fa3d3d05 100644 --- a/src/test/java/org/apache/commons/jxpath/TestBean.java +++ b/src/test/java/org/apache/commons/jxpath/TestBean.java @@ -18,7 +18,7 @@ import java.util.ArrayList; import java.util.HashMap; -import java.util.HashSet; +import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; @@ -155,10 +155,10 @@ public Object getObjects() { /** * A heterogeneous set: String, Integer, NestedTestBean */ - private HashSet set; + private LinkedHashSet set; public Set getSet() { if (set == null) { - set = new HashSet(); + set = new LinkedHashSet(); set.add("String 4"); set.add(Integer.valueOf(4)); set.add(new NestedTestBean("Name 4"));