### Question:
F2SEvent implements Serializable { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; F2SEvent other = (F2SEvent) obj; return new EqualsBuilder().append(this.headers, other.headers) .append(this.body, other.body).isEquals(); } F2SEvent();  F2SEvent(Map<String, String> headers, byte[] body);  F2SEvent(F2SEvent event); byte[] getBody(); Map<String, String> getHeaders(); String getHeader(String key); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testEquals() { byte[] body = "Test string".getBytes(); Map<String, String> headers = ImmutableMap.of("K1", "v1", "k2", "v2"); Assert.assertEquals(new F2SEvent(headers, body), new F2SEvent(headers, body)); }