@Test void testToString() { String expected = new StringJoiner(", ", "User [", "]") .add(String.format("email=%s", EMAIL)) .add(String.format("password=%s", PASSWORD)) .add(String.format("properties=%s", MULTIPLE_PROPERTY_MAP)) .toString(); assertEquals(expected, multiplePropertiesUser.toString()); }
@Override public String toString() { return new StringJoiner(", ", "User [", "]") .add(String.format("email=%s", email)) .add(String.format("password=%s", password)) .add(String.format("properties=%s", properties)) .toString(); }
User { @Override public String toString() { return new StringJoiner(", ", "User [", "]") .add(String.format("email=%s", email)) .add(String.format("password=%s", password)) .add(String.format("properties=%s", properties)) .toString(); } }
User { @Override public String toString() { return new StringJoiner(", ", "User [", "]") .add(String.format("email=%s", email)) .add(String.format("password=%s", password)) .add(String.format("properties=%s", properties)) .toString(); } @JsonCreator  User(@JsonProperty("email") Email email,
              @JsonProperty("password") String password,
              @JsonProperty("properties") Map<String, Object> properties); }
User { @Override public String toString() { return new StringJoiner(", ", "User [", "]") .add(String.format("email=%s", email)) .add(String.format("password=%s", password)) .add(String.format("properties=%s", properties)) .toString(); } @JsonCreator  User(@JsonProperty("email") Email email,
              @JsonProperty("password") String password,
              @JsonProperty("properties") Map<String, Object> properties); Email getEmail(); String getPassword(); @JsonAnyGetter Map<String, Object> getProperties(); @JsonAnySetter void setProperty(String name, Object value); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
User { @Override public String toString() { return new StringJoiner(", ", "User [", "]") .add(String.format("email=%s", email)) .add(String.format("password=%s", password)) .add(String.format("properties=%s", properties)) .toString(); } @JsonCreator  User(@JsonProperty("email") Email email,
              @JsonProperty("password") String password,
              @JsonProperty("properties") Map<String, Object> properties); Email getEmail(); String getPassword(); @JsonAnyGetter Map<String, Object> getProperties(); @JsonAnySetter void setProperty(String name, Object value); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }