David says to God, vindicate me, or judge me. Effectually saying – judge so as to defend me. There is only one who has the right to judge and defend and that is God and David knows that. David offers his heart and mind to God to be tested - David can do this only because they both belong to God.