@Test
public final void testGetLoadInformationShouldInitConnectionWhenMBeanServerConnectionJMSIsNull() throws Exception {

    // GIVEN
    Whitebox.setInternalState(underTest, "jmsQueueConnection", null);
    given(jmxConnectionBuilder.buildMBeanServerConnection(LoadInformationController.JMS_SERVICE_URL)).willReturn(mBeanServerConnection);
    given(jmxObjectNameProvider.getObjectName(LoadInformationController.JMS_QUEUE_OBJECT_NAME)).willReturn(jmsQueue);
    given(mBeanServerConnection.getAttribute(jmsQueue, "QueueSize")).willReturn(new Long(91));
    // WHEN
    Map<String, Long> result = underTest.getLoadInformation();
    // THEN
    verify(jmxConnectionBuilder).buildMBeanServerConnection(LoadInformationController.JMS_SERVICE_URL);
    verify(jmxObjectNameProvider).getObjectName(LoadInformationController.JMS_QUEUE_OBJECT_NAME);
}