### Question:
Role extends DomainObject implements Comparable<Role> { public String getName() { 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 testValidConstructor() { final Role role = new Role(" role "); assertThat(role.getName(), is("ROLE")); }