FileUtils.write(new File(invalidDir, "invalid.txt"), "something valid", "UTF-8");
List<File> invalidFileCollection = new ArrayList<File>(Arrays.asList(invalidDir.listFiles()));
invalidFileCollection.add(new File(invalidDir, "missing.txt"));
// Mocks
Wastebasket wastebasket = mock(Wastebasket.class);
LinkPersister linkPersister = mock(LinkPersister.class);
MimeSupport mimeUtil = mock(MimeSupport.class);
when(mimeUtil.guessMimeTypeFromPath(Mockito.any(MimeRulesSource.class), Mockito.anyString())).thenReturn(
"text/plain");