def METHOD_NAME(self):
    class Person(HasTraits):
        married = PrefixMap({"yes": 1, "yeah": 1, "no": 0, "nah": 0},
                            default_value="yea")
    p = Person()
    married_trait = p.traits()["married"]
    reconstituted = pickle.loads(pickle.dumps(married_trait))
    self.assertEqual(married_trait.validate(p, "married", "yea"), "yeah")
    self.assertEqual(reconstituted.validate(p, "married", "yea"), "yeah")
    with self.assertRaises(TraitError):
        reconstituted.validate(p, "married", "uknown")
    with self.assertRaises(TraitError):
        reconstituted.validate(p, "married", "ye")