}
public void testScopeLevelMap() throws Exception
{
LinkedHashMap<ScopeLevel, Object> map = new LinkedHashMap<ScopeLevel, Object>();
ScopeLevel test1 = new ScopeLevel(1, "HELLO");
Object object1 = new Object();
map.put(test1, object1);
ScopeLevel test2 = new ScopeLevel(2, "HELLO");
Object object2 = new Object();
map.put(test2, object2);
ScopeLevel test3 = new ScopeLevel(3, "DIFFERENT");
Object object3 = new Object();
map.put(test3, object3);
assertEquals(3, map.size());
Iterator<ScopeLevel> i = map.keySet().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());
}