//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
public void testBidiSubMapContains() {
// extra test as other tests get complex
SortedBidiMap sm = (SortedBidiMap) makeFullMap();
Iterator it = sm.keySet().iterator();
Object first = it.next();
Object fromKey = it.next();
Object second = it.next();
Object toKey = it.next();
Object third = it.next();
Object firstValue = sm.get(first);
Object fromKeyValue = sm.get(fromKey);
Object secondValue = sm.get(second);
Object thirdValue = sm.get(third);
SortedMap sub = sm.subMap(fromKey, toKey);
assertEquals(2, sub.size());
assertEquals(true, sm.containsKey(first));
assertEquals(false, sub.containsKey(first));
assertEquals(true, sm.containsValue(firstValue));
assertEquals(false, sub.containsValue(firstValue));
assertEquals(true, sm.containsKey(fromKey));
assertEquals(true, sub.containsKey(fromKey));
assertEquals(true, sm.containsValue(fromKeyValue));
assertEquals(true, sub.containsValue(fromKeyValue));
assertEquals(true, sm.containsKey(second));
assertEquals(true, sub.containsKey(second));
assertEquals(true, sm.containsValue(secondValue));
assertEquals(true, sub.containsValue(secondValue));
assertEquals(true, sm.containsKey(third));
assertEquals(false, sub.containsKey(third));
assertEquals(true, sm.containsValue(thirdValue));
assertEquals(false, sub.containsValue(thirdValue));
}