presto-spi/src/main/java/io/prestosql/spi/security/BasicPrincipal.java/BasicPrincipal/equals
class BasicPrincipal:    @Override
    public boolean equals(Object o)
    {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        BasicPrincipal that = (BasicPrincipal) o;
        return Objects.equals(name, that.name);
    }