### Question:
RoleMapping extends DomainObject implements Comparable<RoleMapping> { public void setRole(final Role role) { this.role = role; }  Role getRole(); String getRoleName(); void setRole(final Role role); SortedSet<Privilege> getPrivileges(); SortedSet<String> getPrivilegeNames(); void setPrivileges(final SortedSet<Privilege> privileges); @Override String toString(); @Override int compareTo(final RoleMapping other);  }### Answer:
@Test public void testSetRole() { assertThat(mapping.getRole(), is(role)); }