private static void testRename(FileSystem fileSystem, String src, String dest) throws TestFailedException {

		try {
			fileSystem.rename(src, dest);
			if (!fileSystem.pathExists(dest))
				throw new TestFailedException("Seems that renaming from " + src + " to " + dest + " did not work");
		} catch (PathNotFoundException e) {
			throw new TestFailedException("The path " + src + " should exist...", e);
		} catch (DestinationAlreadyExistsException e) {
			throw new TestFailedException("The destination should not exist", e);
		} catch (AccessDeniedException e) {
			throw new TestFailedException("You have claimed that the file system is not read only", e);
		}
	}