use strict;
use Test::More tests => 5;
use lib 't/lib';
use Example;
meta_ok('Example');
does_ok( 'Example', 'MooseX::AttributeIndexes::Provider' );
does_ok( 'Example', 'MooseX::AttributeIndexes::Provider::FromAttributes' );
my $i = new_ok('Example',[
foo_indexed => "hello",
foo_nothing => "world",
foo_primary => "bar",
]);
use Data::Dump qw( dump );
is_deeply( $i->attribute_indexes, { 'foo_indexed' => 'hello', 'foo_primary' => 'bar' } );