### Question:
Roles { @Override public String toString() { return GoodDataToStringBuilder.defaultToString(this); } @JsonCreator  Roles(@JsonProperty("roles") final Set<String> roles); Set<String> getRoles(); @Override String toString(); static final String URI; }### Answer:
@Test public void testToStringFormat() throws Exception { final Roles roles = readObjectFromResource("/project/project-roles.json", Roles.class); assertThat(roles.toString(), matchesPattern(Roles.class.getSimpleName() + "\\[.*\\]")); }