ExceptionInfo implements JsonSerializable { private ExceptionInfo(Builder builder) { this.className = builder.className; this.message = builder.message; this.description = builder.description; } private  ExceptionInfo(Builder builder); String getClassName(); String getMessage(); String getDescription(); @Override Map<String, Object> asJson(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void shouldBeEqual() { ExceptionInfo exceptionInfo1 = Factory.exceptionInfo(); ExceptionInfo exceptionInfo2 = Factory.exceptionInfo(); assertThat(exceptionInfo2, is(exceptionInfo1)); }