### Question:
TransitionController extends AbstractConnectableController<Transition> { public void setTimed(boolean timedValue) { component.setTimed(timedValue); registerUndoableEdit(new TransitionTiming(component, timedValue)); } protected  TransitionController(Transition component, UndoableEditListener listener); boolean isTimed(); void setTimed(boolean timedValue); boolean isInfiniteServer(); void setInfiniteServer(boolean infiniteValue); String getName(); String getRateExpr(); int getPriority(); void setPriority(int priorityValue); int getAngle(); void setAngle(int angle); Collection<Arc<Place, Transition>> inboundArcs(); Rate getRate(); void setRate(Rate rate);  }### Answer:
@Test public void setTimedCreatesHistoryItem() { boolean isTimed = true; controller.setTimed(isTimed); UndoableEdit transitionTimed = new TransitionTiming(transition, isTimed); verify(listener).undoableEditHappened(argThat(Contains.thisAction(transitionTimed))); }
@Test public void setTimedModifiesTransition() { boolean isTimed = true; controller.setTimed(isTimed); verify(transition).setTimed(isTimed); }