@Test(expectedExceptions = SystemException.class)
public final void testRunShouldThrowExceptionWhenMemoryUsageCannotBeRetrieved() throws Exception {

    // GIVEN
    Whitebox.setInternalState(underTest, "fIDecompressionEnabled", true);
    Whitebox.setInternalState(underTest, "messageWritingEnabled", true);
    given(mBeanServerConnection.getAttribute(responseQueue, "QueueSize")).willReturn(new Long(2));
    given(mBeanServerConnection.getAttribute(loggerQueue, "QueueSize")).willReturn(new Long(91));
    given(mBeanServerConnection.getAttribute(dlqQueue, "QueueSize")).willReturn(new Long(0));
    given(mBeanServerConnection.getAttribute(amqObject, "MemoryPercentUsage")).willThrow(new AttributeNotFoundException());
    // WHEN
    underTest.run();
    // THEN exception is thrown
}