code: public StateMachine newStateMachine(String name) {
          StateMachine stateMachine = new StateMachine(name);
          stateMachines.add(stateMachine);
          return stateMachine;
      }
docs: /* (non-Javadoc)
  @see org.jmock.internal.InvocationDispatcher#newStateMachine(java.lang.String)