_management.isHttpBasicAuthenticationEnabled());
}
public void testGetAuthenticationProvider()
{
SocketAddress localAddress = InetSocketAddress.createUnresolved("localhost", 8080);
AuthenticationProvider brokerAuthenticationProvider = mock(AuthenticationProvider.class);
when(_broker.getAuthenticationProvider(localAddress)).thenReturn(brokerAuthenticationProvider);
AuthenticationProvider authenticationProvider = _management.getAuthenticationProvider(localAddress);
assertEquals("Unexpected subject creator", brokerAuthenticationProvider, authenticationProvider);
}