my $obj = Foo->bar( @params ); isa_ok( $obj, 'Foo::Child' );