namespace Foo class Bar def main assert .typeOf.fullName == 'Foo.Bar' Baz.Buzz().check namespace Baz class Buzz def check assert .typeOf.fullName == 'Baz.Buzz'