public void testRemoveNonComparableFromEmptyMap(){
  tm=new TreeMap();
  try {
    tm.remove(new Object());
  }
 catch (  ClassCastException expected) {
  }
}

public void testRemoveNonComparableFromEmptyMap ( ) { tm = new TreeMap ( ) ; try { tm . remove ( new Object ( ) ) ; } catch ( ClassCastException expected ) { } }
android ' s treemap requires every element to be comparable , even if there ' s no other element to compare it to . this is more strict than the ri . see harmony - 2474 .
