Trait.xtend implementation and testing.