@Test
public void testGetDetails() throws Exception {

  // Given
  TestingAuthenticationToken authentication = new TestingAuthenticationToken("user", "password");
  authentication.setDetails("test auth details");
  Authentication ambariAuthentication = new AmbariAuthentication(authentication, DEFAULT_USER_ID);
  // When
  Object authDetails = ambariAuthentication.getDetails();
  // Then
  Object expecteAuthDetails = authentication.getDetails();
  assertSame(expecteAuthDetails, authDetails);
}