@Test
public void testGetNameNoOverride () throws Exception {

  // Given
  Principal origPrincipal = new Principal() {
    @Override
    public String getName() {
      return "user1";
    }
  };
  Authentication authentication = new TestingAuthenticationToken(origPrincipal, "password");
  Authentication ambariAuthentication = new AmbariAuthentication(authentication, DEFAULT_USER_ID);
  // When
  String name = ambariAuthentication.getName();
  // Then
  assertEquals("user1", name);
}