@Alexander-Dukhno, o.h.metamodel will not be usable until ORM 5.  You still need to use the old Configuration to create the SessionFactory, not MetadataSources/MetadataImplementor.  The version of o.h.metamodel in 4.3.x is extremely out of date.  If you're looking at ORM's BaseCoreFunctionalTestCase as an example, follow the non-metamodel path.