@Test
public void testGetAuthorities() throws Exception {

  // Given
  Authentication authentication = new TestingAuthenticationToken("user", "password", "test_role");
  Authentication ambariAuthentication = new AmbariAuthentication(authentication, DEFAULT_USER_ID);
  // When
  Collection<?>  grantedAuthorities =  ambariAuthentication.getAuthorities();
  // Then
  Collection<?> expectedAuthorities = authentication.getAuthorities();
  assertSame(expectedAuthorities, grantedAuthorities);
}