@Test
public void testGetLoadInformationShouldSendBackEmptyJSONWhenExceptionRaised() throws Exception {

    //GIVEN
    given(jmxConnectionBuilder.buildMBeanServerConnection(LoadInformationController.JMS_SERVICE_URL)).willReturn(mBeanServerConnection);
    given(jmxObjectNameProvider.getObjectName(LoadInformationController.JMS_QUEUE_OBJECT_NAME)).willReturn(jmsQueue);
    given(mBeanServerConnection.getAttribute(jmsQueue, "QueueSize")).willThrow(AttributeNotFoundException.class);
    //WHEN
    Map<String, Long> result = underTest.getLoadInformation();
    //THEN
    assertEquals(0, result.size());
}