NH-3675

https://nhibernate.jira.com/browse/NH-3675
Initial implementation with unit tests
OK, this helps me to quickly find what os related to the issue. Will remive.