@Test
public void testRun() {
shell.open();
ShowHideFilterControlAction action = new ShowHideFilterControlAction(tree);
assertTrue(tree.getFilterControl().getParent().isVisible());
assertEquals(tree.getFilterControl().getParent().isVisible(), action
.isChecked());
action.run();
assertFalse(tree.getFilterControl().getParent().isVisible());
assertEquals(tree.getFilterControl().getParent().isVisible(), action
.isChecked());
action.run();
assertTrue(tree.getFilterControl().getParent().isVisible());
assertTrue(tree.getFilterControl().isFocusControl());
assertEquals(tree.getFilterControl().getParent().isVisible(), action
.isChecked());
}