public boolean equals(Object other) {
      if (!(other instanceof Event)) {
        return false;
      }
      Event evother = (Event) other;
      boolean ret = count == evother.count && desc.equals(evother.desc) && newObj == evother.newObj;
      if (!ret) {
        // as long as all users of equals in this test expect equality, may as
        // well be informative about failures.
        System.err.println(this + " != " + evother);
      }
      return ret;
    }
This method tests to make sure that a class that is too big to get instrumented doesn't get
instrumented.
src/test/java/com/google/monitoring/runtime/instrumentation/AllocationInstrumenterTest.java