1use strict; 2use warnings; 3use Test::More; 4 5package test::host; 6use Moose; with 'Net::Riak::Role::Hosts'; 7 8package main; 9 10my $test = test::host->new(); 11is scalar @{$test->host}, 1, 'got one host'; 12 13ok my $host = $test->get_host, 'got host'; 14is $host, 'http://127.0.0.1:8098', 'host is ok'; 15 16done_testing; 17