public void complexOrCriteriaReturnsFirstMatch() {
Criteria mountain1 = new NameCriteria("Mountain 1");
Criteria mountain2 = new NameCriteria("Mountain 2");
Criteria mountain3 = new NameCriteria("Mountain 3");
UIAElement result1 = driver.findElement(new OrCriteria(mountain1, mountain2, mountain3));
UIAElement
result3 =
driver.findElement(new OrCriteria(new OrCriteria(mountain3, mountain2), mountain1));
Assert.assertEquals(result1.getName(), "Mountain 1");
Assert.assertEquals(result3.getName(), "Mountain 3");
}