class VertxMqttAuth implements MqttAuth {

        @Override
        public String getUsername() {
            return endpoint.auth().getUsername();
        }

        @Override
        public String getPassword() {
            return endpoint.auth().getPassword();
        }
    }

    private int nextMessageId() {
        this.messageIdCounter = ((this.messageIdCounter % 65535) != 0) ? this.messageIdCounter + 1 : 1;
        return this.messageIdCounter;
    }

    @Override
    public boolean equals(Object o) {<FILL_FUNCTION_BODY>

        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        VertxMqttConnection that = (VertxMqttConnection) o;
        return Objects.equals(endpoint, that.endpoint);
    
<no_super_class>