public void TestByCommandParameter()
{
var buttons = TreeUtility.LogicalTree((AppVar)_ctrl).ByType<Button>();
AppVar button1 = ButtonSearcher.ByCommandParameter(buttons, "button1").Single();
Assert.AreEqual(button1, _ctrl._button1);
button1 = ButtonSearcher.ByCommandParameter(buttons, new ExplicitAppVar(_app.Copy("button1"))).Single();
Assert.AreEqual(button1, _ctrl._button1);
}