@Test(expectedExceptions = SystemException.class)
public void testOnMessageWhenCannotGetObjectShouldThrowSystemException() throws JMSException {

    //GIVEN
    indexMessage = new IndexMessage(FILENAME, IndexingType.ADD.getName());
    given(objectMessage.getObject()).willThrow(new JMSException("exception"));
    //WHEN
    underTest.onMessage(objectMessage);
    //THEN exception should be thrown
}