```ruby
require 'spec_helper'

require 'httparty'

RSpec.describe "haproxy" do

  let(:management_uri) { 'http://10.244.16.3:15672' }

  [0, 1].each do |job_index|
    context "when the job rmq/#{job_index} is down" do
      before(:all) do
        bosh_director.stop('rmq', job_index)
      end

      after(:all) do
        bosh_director.start('rmq', job_index)
      end

      it 'I can still access the managment UI' do
        res = HTTParty.get(management_uri)

        expect(res.code).to eql(200)
        expect(res.body).to include('RabbitMQ Management')
      end
    end
  end
end
```

Read haproxy static_ips from manifest in test
user
```ruby
require 'spec_helper'

require 'httparty'

RSpec.describe "haproxy" do

  let(:management_uri) { "http://#{environment.bosh_manifest.job('haproxy').static_ips.first}:15672" }

  [0, 1].each do |job_index|
    context "when the job rmq/#{job_index} is down" do
      before(:all) do
        bosh_director.stop('rmq', job_index)
      end

      after(:all) do
        bosh_director.start('rmq', job_index)
      end

      it 'I can still access the managment UI' do
        res = HTTParty.get(management_uri)

        expect(res.code).to eql(200)
        expect(res.body).to include('RabbitMQ Management')
      end
    end
  end
end
```
assistant