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();