The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;
use Test::More;
use Test::Fatal;

use Class::MOP;
use lib 't/lib';

is( exception {
    Class::MOP::load_class('TestClassLoaded::Sub');
}, undef );

TestClassLoaded->can('a_method');

is( exception {
    Class::MOP::load_class('TestClassLoaded');
}, undef );

is( exception {
    TestClassLoaded->a_method;
}, undef );

done_testing;