Add tests of typical constructs for TypesafeEnum

Change-Id: Id35233b2c360f071fe8281fdd8155b6071789540
Merge "Add tests of typical constructs for TypesafeEnum" into wip/editorcampaigns