private static void createDirectory(FileSystem fileSystem, String path) throws TestFailedException {

		try {
			fileSystem.createDirectory(path);
			if (!fileSystem.pathExists(path))
				throw new TestFailedException("I created the directory " + path + ", but pathExists says it does not exist");
		} catch (PathNotFoundException e) {
			throw new TestFailedException("createDirectory(" + path + ")", e);
		} catch (DestinationAlreadyExistsException e) {
			throw new TestFailedException("Should not occur", e);
		} catch (AccessDeniedException e) {
			throw new TestFailedException(e);
		}
	}