### Question:
SerializedEvent { @Override public int hashCode() { return Arrays.hashCode(serializedData); } SerializedEvent(Event event);  SerializedEvent(byte[] eventFromFile);  SerializedEvent(InputStream event); InputStream asInputStream(); Event asEvent(); int size(); byte[] serializedData(); long getAggregateSequenceNumber(); byte[] getPayload(); String getIdentifier(); String getAggregateType(); String getPayloadType(); String getPayloadRevision(); long getTimestamp(); boolean isDomainEvent(); String getAggregateIdentifier(); long getSequenceNumber(); String getType(); Map<String, Object> getMetaData(); @Override boolean equals(Object o); @Override int hashCode(); ByteString asByteString();  }### Answer:
@Test public void validateEquals() { SerializedEvent other = new SerializedEvent(wrapped); assertEquals(other, testSubject); assertEquals(other.hashCode(), testSubject.hashCode()); }