code: function (name) {
          if (!name) {
              return this.events.all(); // return all events if name is not provided.
          }
          return this.events.filter(function (ev) {
              return ev.listen === name;
          });
      }
docs: Returns {@link Event}s corresponding to a particular event name. If no name is given, returns all events. This
  is useful when you want to trigger all associated scripts for an event.
  
  @param {String} name - one of the available event types such as `test`, `prerequest`, `postrequest`, etc.
  @returns {Array<Event>}
  
  @example <caption>Get all events for an item and evaluate their scripts</caption>
  var fs = require('fs'), // needed to read JSON file from disk
  Collection = require('postman-collection').Collection,
  myCollection;
  
  // Load a collection to memory from a JSON file on disk (say, sample-collection.json)
  myCollection = new Collection(JSON.stringify(fs.readFileSync('sample-collection.json').toString()));
  
  // assuming the collection has a request called "my-request-1" in root, we get it's test events
  myCollection.items.one("my-request-1").getEvents("test").forEach(function (event) {
  event.script && eval(event.script.toSource());
  });
  
  @todo decide appropriate verb names based on the fact that it gets events for a specific listener name
  @draft