@Override
      public boolean toData(Object o, DataOutput out) throws IOException {
        if (o instanceof IntWrapper) {
          wasInvoked = true;
          IntWrapper iw = (IntWrapper) o;
          out.writeInt(iw.intValue);
          return true;

        } else {
          return false;
        }
      }
A class used when testing <code>DataSerializable</code> and distribution.
geode-dunit/src/main/java/org/apache/geode/cache30/MultiVMRegionTestCase.java