### Question:
Role extends DomainObject implements Comparable<Role> { @Override public String toString() { return name; } Role();  Role(final String name); String getName(); void setName(final String name); @Override String toString(); @Override int compareTo(final Role other);  }### Answer:
@Test public void testToString() { final String role1 = new Role("role1").toString(); assertThat(role1, containsString("ROLE1")); }