### Question:
FileManagerCollector extends AbstractActivityCollector implements IFileMessageListener { @Handler @Override public void onFileExecutionFailed(FileExecutionFailedMessage failure) { ActivityItem item = ActivityItem.create() .setType(ActivityType.WARNING) .setTitle("All attempts to handle events failed.") .setDescription(formatDescription(failure)); getActivityLogger().addActivityItem(item); } @Inject protected  FileManagerCollector(ActivityLogger activityLogger); @Handler @Override void onLocalFileAdded(LocalFileAddedMessage upload); @Handler @Override void onLocalFileMoved(LocalFileMovedMessage download); @Handler @Override void onLocalFileDeleted(LocalFileDeletedMessage delete); @Handler @Override void onLocalFileUpdated(LocalFileUpdatedMessage message); @Handler @Override void onLocalFileDesynchronized(LocalFileSoftDeleteMessage desync); @Handler @Override void onLocalFileConfilct(LocalFileConflictMessage conflict); @Handler @Override void onRemoteFileAdded(RemoteFileAddedMessage upload); @Handler @Override void onRemoteFileMoved(RemoteFileMovedMessage download); @Handler @Override void onRemoteFileDeleted(RemoteFileDeletedMessage delete); @Handler @Override void onRemoteFileUpdated(RemoteFileUpdatedMessage message); @Handler @Override void onFileExecutionFailed(FileExecutionFailedMessage failure); @Handler @Override void onRemoteShareFolder(RemoteShareFolderMessage message); @Handler @Override void onLocalShareFolder(LocalShareFolderMessage message);  }### Answer:
@Test public void testOnFileExecutionFailed(){ FileInfo file = new FileInfo(Paths.get("this/is/a/path.txt"), false); FileExecutionFailedMessage message = new FileExecutionFailedMessage(file); collector.onFileExecutionFailed(message); CollectorTestUtils.captureAddActivityItem(ActivityType.WARNING, activityLogger); }