Trace implements BodyContent, JsonSerializable { private Trace(Builder builder) { this.frames = unmodifiableList(new ArrayList<>(builder.frames)); this.exception = builder.exception; } private  Trace(Builder builder); List<Frame> getFrames(); ExceptionInfo getException(); @Override String getKeyName(); @Override Map<String, Object> asJson(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void shouldBeEqual() { Trace trace1 = Factory.trace(); Trace trace2 = Factory.trace(); assertThat(trace2, is(trace1)); }