@Test public void update() { res = host.info(); assertTrue(res.getErrorMessage(), !res.isError()); assertTrue(host.xpath("TEMPLATE/ATT1").equals("")); assertTrue(host.xpath("TEMPLATE/ATT2").equals("")); String new_template = "ATT2 = NEW_VAL\n" + "ATT3 = VAL3"; res = host.update(new_template); assertTrue(res.getErrorMessage(), !res.isError()); res = host.info(); assertTrue(res.getErrorMessage(), !res.isError()); assertTrue(host.xpath("TEMPLATE/ATT1").equals("")); assertTrue(host.xpath("TEMPLATE/ATT2").equals("NEW_VAL")); assertTrue(host.xpath("TEMPLATE/ATT3").equals("VAL3")); }