hm.put("y", "z");
MapCopy<String, String> mc = new MapCopy<String, String>(hm);
assertEquals(hm, mc);
ByteArrayOutputStream os = new ByteArrayOutputStream();
ObjectOutputStream oos = new MarshalledValueOutputStream(os);
oos.writeObject(mc);
ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray());
ObjectInputStream ois = new MarshalledValueInputStream(is);
Object o = ois.readObject();
assertEquals(hm, o);
}