@Test
public void testAddFileToIndex() {

    //GIVEN
    given(fileFactory.createFile(FOLDER_PATH)).willReturn(file);
    //WHEN
    underTest.addFileToIndex(FOLDER_PATH);
    //THEN
    verify(folderIndexer).indexFolder(file);
}