@Test
public void testGetCredentials() throws Exception {

  // Given
  String passord = "password";
  Authentication authentication = new TestingAuthenticationToken("user", passord);
  Authentication ambariAuthentication = new AmbariAuthentication(authentication, DEFAULT_USER_ID);
  // When
  Object credentials = ambariAuthentication.getCredentials();
  // Then
  assertSame(passord, credentials);
}