In general, vehicles more than five model years old should pass emission inspections:

In general, gasoline- and diesel-fueled vehicles more than five model years old are required to pass emission inspections every two years. Vehicles less than five model years old are issued new car dealer stickers and will not yet be required to pass emission inspections.
DMV Writen Test