@Test
public void testIndexFolderWhenFolderEmptyShouldDoNothing() {

    //GIVEN
    given(folder2.canRead()).willReturn(true);
    given(folder2.isDirectory()).willReturn(true);
    given(folder2.list()).willReturn(null);
    //WHEN
    underTest.indexFolder(folder2);
    //THEN
    verify(fileIndexer, never()).indexFile(file);
}