@Test public void shouldRemoveKeyFromTopLevel() { final Map<String, ?> map = new HashMap<String, String>() {{ put("removeMe", "hello world"); }}; final JsonMap jsonMap = jsonMapFrom(map); jsonMap.remove("removeMe"); assertThat(jsonMap, is(jsonMapFrom(emptyMap()))); }