public void testEnhancedConnection() throws Exception {
XaPooledConnectionFactory pooledFactory =
new XaPooledConnectionFactory(new ActiveMQXAConnectionFactory("mock:" + connector.getConnectUri() + "?closeAsync=false"));
PooledConnection connection = (PooledConnection) pooledFactory.createConnection();
EnhancedConnection enhancedConnection = (EnhancedConnection)connection.getConnection();
DestinationSource destinationSource = enhancedConnection.getDestinationSource();
assertNotNull(destinationSource);
}