@@ -227,20 +227,20 @@ public void testOfMapOnNull() {
227227 assertSame (emptyMap (), map );
228228 }
229229
230-
231230 @ Test
232231 public void testOfEntry () {
233232 Map .Entry <String , Integer > entry = ofEntry ("A" , 1 );
234- assertEquals (MapUtils . ImmutableEntry .class , entry .getClass ());
233+ assertEquals (DefaultEntry .class , entry .getClass ());
235234 assertEquals ("A" , entry .getKey ());
236235 assertEquals (1 , entry .getValue ());
237- assertThrows (UnsupportedOperationException .class , () -> entry .setValue (2 ));
236+ assertEquals (1 , entry .setValue (2 ));
237+ assertEquals (2 , entry .getValue ());
238238 }
239239
240240 @ Test
241241 public void testImmutableEntry () {
242242 Map .Entry <String , Integer > entry = immutableEntry ("A" , 1 );
243- assertEquals (MapUtils . ImmutableEntry .class , entry .getClass ());
243+ assertEquals (ImmutableEntry .class , entry .getClass ());
244244 assertEquals ("A" , entry .getKey ());
245245 assertEquals (1 , entry .getValue ());
246246 assertThrows (UnsupportedOperationException .class , () -> entry .setValue (2 ));
0 commit comments