@Test public void testRemoveObject1() throws Exception { SerializedMap map = new SerializedMap(Map.class, HashMap.class); map.put(literal(String.class, "key"), literal(String.class, "value")); assertThat(map.remove(literal(String.class, "string")), nullValue()); assertThat(map.remove(literal(String.class, "key")), equalTo(literal(String.class, "value"))); }
@Test public void testRemoveObject0() throws Exception { SerializedMap map = new SerializedMap(Map.class, HashMap.class); assertThat(map.remove(literal(String.class, "string")), nullValue()); }