@Subscribe public void unregisterOnString(String event) {
    bus.unregister(this);
    events.add(event);
  }
An EventHandler mock that records a String and unregisters itself in the handler.
otto/src/test/java/com/squareup/otto/UnregisteringStringCatcher.java