{
fail("Should be able to create a connection to the SSL port: " + e.getMessage());
}
// Getting the used username using JMX
jmxUtils.open();
List<ManagedConnection> connections = jmxUtils.getManagedConnections("test");
assertNotNull("Connections are null", connections);
assertEquals("Unexpected number of connections", 1, connections.size());
assertEquals("Wrong authorized ID", "CN=app2@acme.org,OU=art,O=acme,L=Toronto,ST=ON,C=CA", connections.get(0).getAuthorizedId());
}