@Test
public void testClone() throws Exception {

  JSONObject.parseObject("{\"ref\":\"100\",\"type\":\"div\",\"attr\":{},\"style\":{\"backgroundColor\":\"rgb(40,96,144)\",\"fontSize\":40,\"color\":\"#ffffff\",\"paddingRight\":30,\"paddingLeft\":30,\"paddingBottom\":20,\"paddingTop\":20}}");
  JSONObject obj = new JSONObject();
  obj.put("ref","101");
  obj.put("type","test");
  JSONArray event = new JSONArray();
  event.add("click");
  obj.put("event",event);
  dom.parseFromJson(obj);
  WXDomObject clone = dom.clone();
  assertEquals(clone.getRef(),"101");
  assertEquals(clone.getType(),"test");
}