title: Serialization unit test for Hazelcast's DataSerializable writeData and readData
body: <p>Given I have <code>Audit</code> class:</p>
  
  <pre><code>public class Audit implements DataSerializable {
  
      private String createdBy = "me";
      private LocalDateTime createdTimestamp = LocalDateTime.now();
  
      private String modifiedBy;
      private LocalDateTime modifiedTimestamp;
  
      @Override
      public void writeData(ObjectDataOutput out) throws IOException {
          out.writeUTF(getCreatedBy());
          out.writeObject(getCreatedTimestamp());
  
          out.writeUTF(getModifiedBy());
          out.writeObject(getModifiedTimestamp());
      }
  
      @Override
      public void readData(ObjectDataInput in) throws IOException {
          setCreatedBy(in.readUTF());
          setCreatedTimestamp(in.readObject());
  
          setModifiedBy(in.readUTF());
          setModifiedTimestamp(in.readObject());
      }
  
  }
  </code></pre>
  
  <p>I'd like to write unit test which tests serialization and deserialization.</p>
  
  <p>Implementations of <code>ObjectDataOutput</code> and <code>ObjectDataInput</code> are either package private or they require to provide components from Hazelcast API.</p>
  
  <p>How can I create such test?</p>