my $foo = Foo->new( { spiro => 'Agnew', london => 'England' } ); isa_ok( $foo, 'Foo' ); is( $foo->spiro, 'Agnew', "spiro" ); is( $foo->london, 'England', "london" ); ok( $foo->spiro('Not really Agnew'), "set spiro" ); ok( $foo->london('Ontario'), "set london" ); is( $foo->spiro, 'Not really Agnew', "spiro" ); is( $foo->london, 'Ontario', "london" );