Body implements JsonSerializable { private Body(Builder builder) { this.bodyContent = builder.bodyContent; } private  Body(Builder builder); BodyContent getContents(); @Override Object asJson(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void shouldBeEqual() { Body messageBody1 = body(message()); Body messageBody2 = body(message()); assertThat(messageBody2, is(messageBody1)); Body crashBody1 = body(crashReport()); Body crashBody2 = body(crashReport()); assertThat(crashBody2, is(crashBody1)); Body traceBody1 = body(trace()); Body traceBody2 = body(trace()); assertThat(traceBody2, is(traceBody1)); Body traceChainBody1 = body(traceChain()); Body traceChainBody2 = body(traceChain()); assertThat(traceChainBody2, is(traceChainBody1)); }