### Question:
SnowizardError { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if ((obj == null) || (getClass() != obj.getClass())) { return false; } final SnowizardError other = (SnowizardError) obj; return Objects.equals(code, other.code) && Objects.equals(message, other.message); } @JsonCreator  SnowizardError(@JsonProperty("code") final int code,
            @JsonProperty("message") final String message); @JsonProperty int getCode(); @JsonProperty String getMessage(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() { final SnowizardError error2 = new SnowizardError(123, "this is bad"); assertThat(error2).isEqualTo(error); }