def METHOD_NAME(self):
    obj = HasEnum(an_enum=States.FIRST)
    serialized = obj.to_aws()
    unserialized = HasEnum.from_aws(serialized)
    self.assertEqual(obj, unserialized)
    self.assertIsInstance(unserialized.an_enum, Enum)