It's no different to measuring the mass of any other object. It's not special just because it is a black hole. The obvious way is to measure the orbital period of orbiting objects.
The other way of looking at is if you can walk away from a car you can walk away from a black hole with the mass of a car.
This unfortunate fact along with Hawking radiation scuppered my invention of the black hole vacuum cleaner.