public void testSerialization() throws IOException, ClassNotFoundException {
  final IHAWriteMessage msg1=new HAWriteMessage(UUID.randomUUID(),12L,13L,14L,15,16,StoreTypeEnum.RW,17L,18L,19L);
  final byte[] ser1=serialized(msg1);
  final IHAWriteMessage msg2=(IHAWriteMessage)SerializerUtil.deserialize(ser1);
  assertTrue(msg1.equals(msg2));
  final byte[] ser2=serialized(msg2);
  assertTrue(BytesUtil.bytesEqual(ser1,ser2));
}

public void testSerialization ( ) throws IOException , ClassNotFoundException { final IHAWriteMessage msg1 = new HAWriteMessage ( UUID . randomUUID ( ) , 12L , 13L , 14L , 15 , 16 , StoreTypeEnum . RW , 17L , 18L , 19L ) ; final byte [ ] ser1 = serialized ( msg1 ) ; final IHAWriteMessage msg2 = ( IHAWriteMessage ) SerializerUtil . deserialize ( ser1 ) ; assertTrue ( msg1 . equals ( msg2 ) ) ; final byte [ ] ser2 = serialized ( msg2 ) ; assertTrue ( BytesUtil . bytesEqual ( ser1 , ser2 ) ) ; }
simple test to verify hawritemessage serialization
