}
@Test
public void testTwigQueryNodeParent()
throws Exception {
final TwigQueryNode twig = new TwigQueryNode(new WildcardNodeQueryNode(),
new WildcardNodeQueryNode());
final FieldQueryNode term = new FieldQueryNode("field", "term", 0, 4);
assertTrue(term.getParent() == null);
assertEquals(twig, twig.getRoot().getParent());
assertEquals(twig, twig.getChild().getParent());
twig.setRoot(term);