/** Test method for {@link org.jboss.ha.framework.server.SimpleMarshalledValue#hashCode()}. */
  @Test
  public void testHashCode() throws Exception {
    GUID guid = new GUID();
    SimpleMarshalledValue<GUID> mv = this.factory.createMarshalledValue(guid);
    assertEquals(guid.hashCode(), mv.hashCode());

    SimpleMarshalledValue<GUID> copy = replicate(mv);
    this.validateHashCode(guid, copy);

    mv = this.factory.createMarshalledValue(null);
    assertEquals(0, mv.hashCode());
  }
 <T> void validateHashCode(T original, SimpleMarshalledValue<T> copy) {
   assertEquals(0, copy.hashCode());
 }