@Test
public void testFieldExists() throws ParserException {

    final RootNode root = parser.parse("exists(features/scanner)");
    assertThat(root).isNotNull();
    assertThat(root.getChildren().size()).isEqualTo(1);
    final ExistsNode existsNode = (ExistsNode) root.getChildren().get(0);
    assertThat(existsNode.getProperty().getClass()).isEqualTo(String.class);
    assertThat(existsNode.getProperty()).isEqualTo("features/scanner");
}