```ruby
describe MiddlewareMessagingController do
  render_views
  before(:each) do
    set_user_privileges
  end

  it 'renders index' do
    get :index
    expect(response.status).to eq(302)
    expect(response).to redirect_to(:action => 'show_list')
  end

  describe '#show' do
    before do
      EvmSpecHelper.create_guid_miq_server_zone
      login_as FactoryGirl.create(:user)
      @messaging = FactoryGirl.create(:hawkular_middleware_messaging_initialized)
    end

    subject { get :show, :id => @messaging.id }

    context 'render' do
      render_views

      it do
        is_expected.to have_http_status 200
        is_expected.to render_template(:partial => 'layouts/listnav/_middleware_messaging')
        is_expected.to render_template(:partial => 'middleware_messaging/_main')
      end
    end
  end
end
```

Write configuration shema for middleware_messaging
user
```ruby
describe MiddlewareMessagingController do
  render_views
  before(:each) do
    stub_user(:features => :all)
  end

  it 'renders index' do
    get :index
    expect(response.status).to eq(302)
    expect(response).to redirect_to(:action => 'show_list')
  end

  describe '#show' do
    before do
      EvmSpecHelper.create_guid_miq_server_zone
      login_as FactoryGirl.create(:user)
      @messaging = FactoryGirl.create(:hawkular_middleware_messaging_initialized)
    end

    subject { get :show, :id => @messaging.id }

    context 'render' do
      render_views

      it do
        is_expected.to have_http_status 200
        is_expected.to render_template(:partial => 'layouts/listnav/_middleware_messaging')
        is_expected.to render_template(:partial => 'middleware_messaging/_main')
      end
    end
  end
end
```
assistant