Response { public String asReplyString() { return code.getRawCode() + " " + message; } @JsonCreator  Response(@JsonProperty("code") SMTPStatusCode code,
                    @JsonProperty("message") String message); String asReplyString(); SMTPStatusCode getCode(); String getMessage(); @Override final boolean equals(Object o); @Override final int hashCode();  }
@Test void asReplyStringShouldReturnASMTPResponseLine() { assertThat(new Response(SMTPStatusCode.ACTION_COMPLETE_250, "message").asReplyString()) .isEqualTo("250 message"); }
@Test void asReplyStringShouldReturnASMTPResponseLineWhenEmptyMessage() { assertThat(new Response(SMTPStatusCode.ACTION_COMPLETE_250, "").asReplyString()) .isEqualTo("250 "); }