@Test
  public void testValidateHasNoChildElements() {
    Document document = DocumentHelper.createDocument();

    Element element = document.addElement("execute");

    element.addAttribute("function", "Click");
    element.addAttribute("locator1", "//here");

    PoshiRunnerValidation.validateHasNoChildElements(element, "ValidateHasNoChildElements.macro");

    Assert.assertEquals("validateHasNoChildElements is failing", "", getExceptionMessage());

    Element childElement = element.addElement("var");

    childElement.addAttribute("name", "hello");
    childElement.addAttribute("value", "world");

    PoshiRunnerValidation.validateHasNoChildElements(element, "ValidateHasNoChildElements.macro");

    Assert.assertEquals(
        "validateHasNoChildElements is failing", "Invalid child elements", getExceptionMessage());
  }