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));