@Test
public void testCreateIndexWhenDocDirDoesNotExistShouldLogError() {

    //GIVEN
    given(fileFactory.createFile(FOLDER_PATH)).willReturn(mockFolder);
    //WHEN
    underTest.createIndex(FOLDER_PATH);
    //THEN
    verify(logger).error(Mockito.anyString());
}