@Test
public void testTernaryOperators()
    throws Exception
{

    StringBuilder sb = new StringBuilder();
    sb.append( "<filter>" );
    sb.append( "  <or>" );
    sb.append( "    <and>" );
    sb.append( "      <true/>" );
    sb.append( "      <false/>" );
    sb.append( "      <true/>" );
    sb.append( "    </and>" );
    sb.append( "    <false/>" );
    sb.append( "    <xor>" );
    sb.append( "      <false/>" );
    sb.append( "      <true/>" );
    sb.append( "      <false/>" );
    sb.append( "    </xor>" );
    sb.append( "  </or>" );
    sb.append( "</filter>" );
    Condition cond = new Condition( buildDom( sb ) );
    assertTrue( cond.getValue( context1 ) );
    assertTrue( cond.getValue( context2 ) );
}