@Override
    public Object fromData(DataInput in) throws IOException, ClassNotFoundException {
      fromDataInvoked = true;
      return super.fromData(in);
    }
Make sure a user defined ds with an id of42 bytes works.
geode-core/src/test/java/org/apache/geode/internal/DataSerializableJUnitTest.java