MCTFlipFlopAction extends ContextAwareAction { protected void setState(boolean state) { this.state = state; } protected  MCTFlipFlopAction(Action onStateAction, Action offStateAction, String name); Action getAction();  }
@Test public void testSetState() { flipAction.setState(true); assertEquals(flipAction.getAction(), onAction); flipAction.setState(false); assertEquals(flipAction.getAction(), offAction); }