171172173174175176177178179180181
{ } try { um.keySet().remove("hello"); fail("UnsupportedOperationException should be thrown"); } catch (UnsupportedOperationException e) { }
180181182183184185186187188189190
{ } try { um.keySet().removeAll(null); fail("UnsupportedOperationException should be thrown"); } catch (UnsupportedOperationException e) { }
189190191192193194195196197198199
{ } try { um.keySet().retainAll(null); fail("UnsupportedOperationException should be thrown"); } catch (UnsupportedOperationException e) { }
198199200201202203204205206207208
{ } try { Iterator<String> i = um.keySet().iterator(); while (i.hasNext()) i.remove(); fail("UnsupportedOperationException should be thrown"); } catch (UnsupportedOperationException e)
227228229230231232233234235236237
{ } try { um.keySet().clear(); fail("UnsupportedOperationException should be thrown"); } catch (UnsupportedOperationException e) { }