use strictures 1;
use Test::More;
+use Test::Fatal;
my @result;
$foo->set_one('rofl');
is( $foo->get_one, 'rofl', 'writer works' );
+ok( exception { $foo->get_one('blah') }, 'reader dies on write' );
+
is( $bar->TWO, '...', 'accessor works for reading' );
$bar->TWO('!!!');
is( $bar->TWO, '!!!', 'accessor works for writing' );