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