public static void renameKey(Map<String, Object> map, String originalKey, String newKey) {
        if (map.containsKey(originalKey)) {
            final Object value = map.remove(originalKey);
            map.put(newKey, value);
        }
    }
@Test
    public void renameKeyHandlesEmptyMap() {
        final Map<String, Object> map = new HashMap<>();
        MapUtils.renameKey(map, "foo", "bar");
        assertThat(map).isEmpty();
    }