FillAction extends WebSymbolAction { public WebElementLocator getNode() { return node; }  @Override ExecuteResult execute(WebSiteConnector connector); WebElementLocator getNode(); void setNode(WebElementLocator node); String getValue(); void setValue(String value);  }
@Test public void testJSON() throws IOException { ObjectMapper mapper = new ObjectMapper(); String json = mapper.writeValueAsString(f); FillAction f2 = mapper.readValue(json, FillAction.class); assertEquals(f.getNode(), f2.getNode()); }