 do       AMQP.stub!(:connect)       MQ.stub!(:new)       Nanite::MapperProxy.new('mapperproxy', {})       @instance = Nanite::MapperProxy.instance        @fanout = stub(:fanout, :publish => true)       @instance.amqp.stub!(:fanout).and_return(@fanout)     