Variety of ways
A thorough examination beyond what is typically done is usually necessary.
This exam would check things like the history of what has happened to your jaw, as well as listening to the sounds it makes. Often there are measurements of the range of motion. Usually other inspection of your bite alignment too.
The exam also checks a variety of muscles that affect the TMJ as well.