@Test
public void testSendMessageToIndexerShouldSendMessage() {

    //GIVEN
    given(messageCreatorFactory.createJmsMessageCreator(message)).willReturn(messageCreator);
    //WHEN
    underTest.sendMessageToIndexer(message);
    //THEN
    verify(jmsTemplateForIndexing).send(messageCreator);
}