You should make this as a module which decorates the base animator and records the events so that they can be tested for.