@Test
public void testOnMessageWhenTypeIsAddShouldAddFileToIndex() throws JMSException {

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