public void TestIndexingLowLevel()
        {
            LocalObjectContainer container     = Fixture().FileSession();
            ClassMetadata        classMetadata = container.ClassMetadataForReflectClass(container.Reflector().ForClass(typeof(Item)));
            FieldMetadata        fieldMetadata = classMetadata.FieldMetadataForName("_asByte");

            Assert.IsTrue(fieldMetadata.CanLoadByIndex(), "EnumTypeHandler should be indexable.");
            BTree index = fieldMetadata.GetIndex(container.SystemTransaction());

            Assert.IsNotNull(index, "No btree index found for enum field.");
        }
        public void TestIndexingLowLevel()
        {
            LocalObjectContainer container     = Fixture().FileSession();
            ClassMetadata        classMetadata = container.ClassMetadataForReflectClass(container.Reflector().ForClass(typeof(ValueTypeHolder)));
            FieldMetadata        fieldMetadata = classMetadata.FieldMetadataForName("Value");

            Assert.IsTrue(fieldMetadata.CanLoadByIndex(), WithTypeName("Typehandler for type {0} should be indexable."));
            BTree index = fieldMetadata.GetIndex(container.SystemTransaction());

            Assert.IsNotNull(index, WithTypeName("No btree index found for field of type {0} ."));
        }