}
public void testScopeLevelSet() throws Exception
{
LinkedHashSet<ScopeLevel> set = new LinkedHashSet<ScopeLevel>();
ScopeLevel test1 = new ScopeLevel(1, "HELLO");
set.add(test1);
ScopeLevel test2 = new ScopeLevel(2, "HELLO");
set.add(test2);
ScopeLevel test3 = new ScopeLevel(3, "DIFFERENT");
set.add(test3);
assertEquals(3, set.size());
Iterator<ScopeLevel> i = set.iterator();
ScopeLevel test = i.next();
assertEquals(1, test.getLevel());
assertEquals("HELLO", test.getName());
test = i.next();
assertEquals(2, test.getLevel());
assertEquals("HELLO", test.getName());
test = i.next();
assertEquals(3, test.getLevel());
assertEquals("DIFFERENT", test.getName());
}