def bound_to?(exchange, opts = {})
      if exchange.respond_to?(:routes_to?)
        # we can find out on the exchange object
        exchange.routes_to? self, opts
      else

        # we need the channel to look up the exchange
        @channel.xchg_bound_to? self, opts.fetch(:routing_key, @name), exchange
      end
    end
def bound_to?(exchange, opts = {})
      if exchange.respond_to?(:routes_to?)
        # we can find out on the exchange object
        exchange.routes_to? self, opts
      else

        # we need the channel to look up the exchange
        @channel.xchg_bound_to? self, opts.fetch(:routing_key, @name), exchange
      end
    end
@endgroup

 Check if this exchange is bound to another exchange

 @param [BunnyMock::Exchange,String] exchange Exchange to check
 @param [Hash] opts Binding properties

 @option opts [String] :routing_key Routing key from binding

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