public void ExplicitDeclaration()
        {
            var orm = new ObjectRelationalMapper();
            orm.HeterogeneousAssociation<MyClass>(mc => mc.MyReferenceClass);

            orm.IsHeterogeneousAssociation(typeof(MyClass).GetProperty("MyReferenceClass")).Should().Be.True();
        }
 public void ContainHbmAnyElement()
 {
     var orm = new ObjectRelationalMapper();
     orm.TablePerClass<MyClass>();
     orm.HeterogeneousAssociation<MyClass>(mc => mc.MyReferenceClass);
     var mapper = new Mapper(orm);
     var mappings = mapper.CompileMappingFor(new[] {typeof (MyClass)});
     var hbmClass = mappings.RootClasses.Single();
     hbmClass.Properties.Single(p => p.Name == "MyReferenceClass").Should().Be.OfType<HbmAny>();
 }