How do you test a camshaft position sensor on a ford focus?

Using a Digital Multimeter set to 2k,..the resistance should be 200 to 900 ohms ifnot replace,