@Override
    public int hashCode() {
        return Objects.hash(getPath(), getComparator(), getExpected());
    }
Creates a new instance from a {@link Node}.

@param node Node tom create the PathMatcher from.
@return Returns the created PathMatcher.
@throws ExpectationNotMetException if the given Node is invalid.
smithy-waiters/src/main/java/software/amazon/smithy/waiters/PathMatcher.java