@Test
public void testOnMessageWhenMessageIsNotObjectMessageShouldDoNothing() throws JMSException {

    //GIVEN
    indexMessage = new IndexMessage(FILENAME, "modify");
    given(objectMessage.getObject()).willReturn(indexMessage);
    //WHEN
    underTest.onMessage(message);
    //THEN
    verify(luceneEngine, never()).addFileToIndex(FILENAME);
    verify(luceneEngine, never()).deleteFileFromIndex(FILENAME);
}