@Override
    public Node toNode() {
        return Node.from(toString());
    }
Creates a {@code PathComparator} from a {@link Node}.
@param node Node to create the {@code PathComparator} from.
@return Returns the created {@code PathComparator}.
@throws ExpectationNotMetException if the given {@code node} is invalid.
smithy-waiters/src/main/java/software/amazon/smithy/waiters/PathComparator.java