Test::MockModule->new('Bar'); # or if you really like the buggy indirect object syntax: new Test::MockModule 'Bar';