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