TraceChain implements BodyContent, JsonSerializable { public TraceChain(Builder builder) { this.traces = builder.traces != null ? unmodifiableList(new ArrayList<>(builder.traces)) : null; } TraceChain(Builder builder); List<Trace> getTraces(); @Override String getKeyName(); @Override Object asJson(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void shouldBeEqual() { TraceChain traceChain1 = Factory.traceChain(); TraceChain traceChain2 = Factory.traceChain(); assertThat(traceChain2, is(traceChain1)); }