MethodInvocations requireInvoked(String methodName) {
   return methodInvocations.requireInvoked(methodName);
 }
 @Override
 public String getText() {
   if (recording) methodInvocations.invoked("getText");
   return super.getText();
 }