private static void checkAndDeleteFile(FileSystem fileSystem, String file) throws TestFailedException {
		try {
			if (fileSystem.pathExists(file))
				fileSystem.deleteFile(file);
			
			if (fileSystem.pathExists(file))
				throw new TestFailedException("I have closed all handles, therefore I should be able to delete " + file);
		} catch (PathNotFoundException e) {
			throw new TestFailedException("I have closed all handles, therefore I should be able to delete " + file, e);
		} catch (AccessDeniedException e) {
			throw new TestFailedException(e);
		}
	}