124125126127128129130131132133134
{ } try { um.entrySet().remove(null); fail("UnsupportedOperationException should be thrown"); } catch (UnsupportedOperationException e) { }
133134135136137138139140141142143
{ } try { um.entrySet().removeAll(null); fail("UnsupportedOperationException should be thrown"); } catch (UnsupportedOperationException e) { }
142143144145146147148149150151152
{ } try { um.entrySet().retainAll(null); fail("UnsupportedOperationException should be thrown"); } catch (UnsupportedOperationException e) { }
151152153154155156157158159160161
{ } try { Iterator<Map.Entry<String, List<String>>> i = um.entrySet().iterator(); while (i.hasNext()) i.remove(); fail("UnsupportedOperationException should be thrown"); } catch (UnsupportedOperationException e)
162163164165166167168169170171172
{ } try { um.entrySet().iterator().next().setValue(null); fail("UnsupportedOperationException should be thrown"); } catch (UnsupportedOperationException e) { }