HashMap中的clone问题

@Test
public void cloneMapTest() throws Exception {

    HashMap<User,Integer> map=new HashMap<User,Integer>();

    map.put(new User("wang", 11),1);
    map.put(new User("hao", 12),2);
    map.put(new User("wan", 13), 3);


    HashMap<User,Integer> map2=(HashMap<User, Integer>) map.clone();

    map2.remove(new User("hao",12));


    for(Entry<User, Integer> entry:map.entrySet()){
        System.out.println(entry.getKey().getAge());
        System.out.println(entry.getKey().getName());
    }
}
 JDK里说  HashMap中的clone方法是浅复制,那map2里的修改会影响map。但结果却是
 12
hao
13
wan
11
wang
没有把那个new User("hao",12)  给去掉,求大神解答!!
我知道map是深复制了一个map2,但map中的table还是引用。这个不能理解

map2.remove(new User("hao",12));这句话里面new了一个新对象,所以根本删不掉,User是类实例,是引用类型,map中是根据地址来判断是不是同一个对象,所以你要想remove就不能new一个新的,那样和之前的是两个不同的对象

User user=new User("hao", 12);
map.put(new User("wang", 11),1);
map.put(user,2);
map.put(new User("wan", 13), 3);

    HashMap<User,Integer> map2=(HashMap<User, Integer>) map.clone();

    map2.remove(user);
 那我这样改也还是不行啊