public void testRemovedFoldersShouldCauseFolderRemovedEvent() {
Mock folderMock = mock(FileObject.class);
DifferenceAnalysingFolderContentHandler handler = new DifferenceAnalysingFolderContentHandler((FileObject) folderMock.proxy(), null);
Mock initialFolderOneMock = mock(FileObject.class);
initialFolderOneMock.expects(once())
.method("getType")
.withNoArguments()
.will(returnValue(FileType.FOLDER));
FileObject initialFolderOne = (FileObject) initialFolderOneMock.proxy();
Mock initialFolderTwoMock = mock(FileObject.class);