# -*- perl -*- use Test::More tests => 3; use strict; use warnings; BEGIN { use_ok('Net::DBus::Binding::Introspector'); use_ok('Net::DBus::Object'); }; my $bus = Net::DBus->test; my $service = $bus->export_service("/org/cpan/Net/DBus/Test/introspect"); my $object = Net::DBus::Object->new($service, "/org/example/Object/OtherObject"); my $introspector = $object->_introspector; my $xml_got = $introspector->format(); my $xml_expect = < EOF is($xml_got, $xml_expect, "xml data matches");