### Question:
AnnotationController extends AbstractPetriNetComponentController<Annotation> { public void setText(String text) { String oldText = component.getText(); component.setText(text); registerUndoableEdit(new ChangeAnnotationText(component, oldText, text)); } AnnotationController(Annotation component, UndoableEditListener listener); String getText(); void setText(String text);  }### Answer:
@Test public void changesAnnotationText() { String changedText = "This text has changed"; controller.setText(changedText); verify(annotation).setText(changedText); }