Subject the wheel to whatever loads it might at worst encounter during its use. If it's a rear wheel, climb many hills seated while carrying maximum weight panniers on your rear rack. If it's a disc brake front wheel, brake often so hard that your rear wheel rises to the ground, with as much cargo on the bike as you can put there. Whenever encountering a curb, ride over it as fast as you can without pinch-flatting your tubes.
I have found it doesn't take many hundred kilometers to reveal whether a wheel is going to fail in a catastrophic total and complete loss of tension in all spokes. It could be a poor pair of wheels are ok for some people, for example those who weigh no more than 70 kg. If the wheels last 1000 km, I can be reasonably confident they don't fail due to a complete and total loss of spoke tension. They might still fail due to spoke fatigue in 10 000 - 100 000 km, though, so even and high spoke tension still has some value.
If/when the wheel fails, then it's time to decide what to do (on most rims losing all spoke tension is not dangerous, you'll notice it). I have found that many (most?) bike shops don't know what makes a wheel durable. Their solution appears to be to put some thread glue into the spoke nipple threads and quickly put some (but not enough) tension on the spokes, unevenly. Well theoretically this might withstand the "does it last 1000 km?" test but on one pair of wheels where the bike shop glued the threads, I found the rear wheel is still creaking when I climb hills. Most likely due to uneven spoke tension.
However, a second approach could be to find a good bike mechanic with knowledge on wheelbuilding but most do a poor job and I don't know where to look for "mechanics with good wheelbuilding skills". It's almost easier to learn the skill yourself because that's about what you need to ask few questions about wheelbuilding from a bike mechanic to estimate whether you can trust their wheels. If you're not a software developer, you don't know how to hire software developers. If you're not a wheelbuilder, you don't know how to hire wheelbuilders.
A third approach might be to either build yourself a new pair of wheels or to tension the wheel yourself to an even and high spoke tension.
On my wheels that were thread-glued by a bike shop, I still haven't used them after I found they creak. They're my spare wheels. I replaced them by a pair of wheels that I built from the beginning, not finding the 28 spokes, lack of double eyelets and so-called "tubeless ready" rims where mounting a normal tire takes an hour and three tube punctures adequate (I use 36-spoke wheels).
If you find the wheels adequate, e.g. if they have double eyelets, triple-butted spokes, 36 spokes per wheel, if it's easy to mount tires and everything else is ok too apart from equal and high spoke tension, you might want to touch up the wheels yourself if they fail due to lack of spoke tension. The thread glue most bike shops would put there would just be a hindrance in the eventual necessity of touching up the wheels yourself.
Maybe some day I put the deficient 28-spoke wheels with thread glue into a truing stand and see what I can do for them.