def routes_to?(exchange_or_queue, opts = {})
      route = exchange_or_queue.respond_to?(:name) ? exchange_or_queue.name : exchange_or_queue
      rk = opts.fetch(:routing_key, route)
      @routes.key?(rk) && @routes[rk].any? { |r| r == exchange_or_queue }
    end
def routes_to?(exchange_or_queue, opts = {})
      route = exchange_or_queue.respond_to?(:name) ? exchange_or_queue.name : exchange_or_queue
      rk = opts.fetch(:routing_key, route)
      @routes.key?(rk) && @routes[rk].any? { |r| r == exchange_or_queue }
    end
Check if a queue is bound to this exchange

 @param [BunnyMock::Queue,String] exchange_or_queue Exchange or queue to check
 @param [Hash] opts Binding properties

 @option opts [String] :routing_key Custom routing key

 @return [Boolean] true if the given queue or exchange matching options is bound to this exchange, false otherwise
 @api public