assertEquals(testScope1Different.getScopeLevel(), key.getMaxScopeLevel());
}
public void testAddScopeChangeSorts() throws Exception
{
ScopeKey key = new ScopeKey();
assertAddScope(key, testScope1, null);
assertAddScope(key, testScope2, null);
assertAddScope(key, testScope3, null);
assertAddScope(key, testScope4, null);
assertAddScope(key, testScope5, null);
Scope[] expected = new Scope[] { testScope1, testScope2, testScope3, testScope4, testScope5 };
assertScopeKey(expected, key);
assertEquals(testScope5.getScopeLevel(), key.getMaxScopeLevel());
assertAddScope(key, testScope3Different, testScope3);
expected = new Scope[] { testScope1, testScope2, testScope3Different, testScope4, testScope5 };
assertScopeKey(expected, key);
assertEquals(testScope5.getScopeLevel(), key.getMaxScopeLevel());
}