--- /dev/null
+use strictures 1;
+use Test::More;
+use FindBin;
+
+use System::Introspector::Hosts;
+
+my $probe = System::Introspector::Hosts->new(
+ hosts_file => "$FindBin::Bin/data/hosts",
+);
+my $data = $probe->gather;
+
+is_deeply $data,
+ [['1.2.3.4', qw( foo bar )], ['2.3.4.5', 'bar']],
+ 'parsing worked';
+
+done_testing;