How do doctors test for type 2 diabetes?

I have a doctor’s appointment tomorrow and due to my weight of 315 pounds and the fact that I would be considered morbidly obese with a BMI greater than 40, I will most likely be tested for type 2 diabetes. I wouldn’t be suprised if I do have it though.