@Test
public void testParseFromJson() throws Exception {

  dom.parseFromJson(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}}"));
  assertEquals(dom.getRef(),"100");
  assertEquals(dom.getType(),"div");
  dom.applyStyleToNode();
}