--- /dev/null
+use strictures 1;
+use Test::More;
+
+use Object::Remote::Connector::Local;
+use Object::Remote;
+
+$ENV{PERL5LIB} = join(
+ ':', ($ENV{PERL5LIB} ? $ENV{PERL5LIB} : ()), qw(lib t/lib)
+);
+
+my $connection = Object::Remote::Connector::Local->new->connect;
+
+#$Object::Remote::Connection::DEBUG = 1;
+
+my $proxy = Object::Remote->new(
+ connection => $connection,
+ class => 'ORTestClass'
+)->proxy;
+
+isnt($$, $proxy->pid, 'Different pid on the other side');
+
+is($proxy->counter, 0, 'Counter at 0');
+
+is($proxy->increment, 1, 'Increment to 1');
+
+is($proxy->counter, 1, 'Counter at 1');
+
+done_testing;
--- /dev/null
+package ORTestClass;
+
+use Moo;
+
+has counter => (is => 'rwp', default => sub { 0 });
+
+sub increment { $_[0]->_set_counter($_[0]->counter + 1); }
+
+sub pid { $$ }
+
+1;