package Two; # Exactly the same as One, just in a different package..

use Moose;

my $called_foo = 0;

sub get_called_foo { $called_foo }

has foo => (is => 'rw', required => 1, trigger => sub { $called_foo++ });

__PACKAGE__->meta->make_immutable;

1;
