private ManagedConnection getConnectionMBean()
{
List<ManagedConnection> connections = getManagedConnections();
assertNotNull("Connection MBean is not found", connections);
assertEquals("Unexpected number of connection mbeans", 1, connections.size());
final ManagedConnection mBean = connections.get(0);
assertNotNull("Connection MBean is null", mBean);
return mBean;
}