### Question:
RoleMapping extends DomainObject implements Comparable<RoleMapping> { public String getRoleName() { return role.getName(); }  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 testGetRoleName() { assertThat(mapping.getRoleName(), is(role.getName())); }