### Question:
BackendNodePrincipal implements Principal, Serializable { @Override public String getName() { return username + "@" + environmentName + "@" + hostName; } BackendNodePrincipal(final String username, final String hostName, final String environmentName); String getEnvironmentName(); String getHostname(); @Override String getName(); String getUsername();  }### Answer:
@Test public void testGetName() { assertThat(principal.getName()).isEqualTo(username + "@" + environmentName + "@" + hostName); }