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