### Question:
MillenniumDomainPrincipal implements Principal, Serializable { @Override public String getName() { return username + "@" + domainName; } MillenniumDomainPrincipal(final String username, final String domainName); String getDomainName(); @Override String getName(); String getUsername();  }### Answer:
@Test public void testGetName() { assertThat(principal.getName()).isEqualTo(username + "@" + domainName); }