Passage
And I will speak of thy testimonies before kings, and will not be ashamed;
And I will speak of thy testimonies before kings, and will not be ashamed;
Psalms 119:44 Then will I keep thy law continually, for ever and ever;
Psalms 119:45 And I will walk at liberty, for I have sought thy precepts;
Psalms 119:46 And I will speak of thy testimonies before kings, and will not be ashamed;
Psalms 119:47 And I will delight myself in thy commandments, which I have loved;
Psalms 119:48 And I will lift up my hands unto thy commandments, which I have loved, and I will meditate in thy statutes.
The verse centers on "speak", "testimonies", "before", "kings", and "ashamed". It is saying that the verse draws attention to "speak" and "testimonies", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 45's "And I will walk at liberty for..." into verse 47's "And I will delight myself in thy...", so "speak" and "testimonies" belong inside that flow. In Psalms context, the local focus is worship, trust, the LORD's kingship, and covenant mercy.
A plain takeaway is to answer the verse's own emphasis on "speak" and "testimonies" with trust shaped by these words, not by a vague optimism outside the passage.