@Override
    public boolean toData(Object o, DataOutput out) throws IOException {
      toDataInvoked = true;
      return super.toData(o, out);
    }
Make sure a user defined ds with an id of42 bytes works.
geode-core/src/test/java/org/apache/geode/internal/DataSerializableJUnitTest.java