&& c.getParent() == labeledList;
}
});
// Select by row index or by value
tester.actionSelectRow(list, new JListLocation(1));
// tester.actionSelect(list, new JListLocation("two"));
assertEquals("Wrong label after selection",
"Selected: two", label.getText());
tester.actionSelectRow(list, new JListLocation(2));
assertEquals("Wrong label after selection",
"Selected: three", label.getText());
tester.actionSelectRow(list, new JListLocation(0));
assertEquals("Wrong label after selection",
"Selected: one", label.getText());
}