@Test
public void testGetPrincipal() throws Exception {

  // Given
  Authentication authentication = new TestingAuthenticationToken("user", "password");
  Authentication ambariAuthentication = new AmbariAuthentication(authentication, DEFAULT_USER_ID);
  // When
  Object principal = ambariAuthentication.getPrincipal();
  // Then
  assertEquals("user", principal);
}