@Test
public void testOnMessageWhenTypeIsDeleteShouldAddDeleteFromIndex() throws JMSException {

    //GIVEN
    indexMessage = new IndexMessage(FILENAME, IndexingType.DELETE.getName());
    given(objectMessage.getObject()).willReturn(indexMessage);
    //WHEN
    underTest.onMessage(objectMessage);
    //THEN
    verify(luceneEngine).deleteFileFromIndex(FILENAME);
}