title: Mock EntityEntry NHibernate
body: <p>I'm doing some unit tests for an <code>EntityEventListener</code> from NHibernate, and I'm got stuck trying to mock <code>FlushEvent</code> or the <code>EntityEntry</code>.</p>
  
  <p>As EntityEntry doesn't have a public constructor, and type Mock must be an interface, an abstract or non-sealed class.</p>
  
  <pre><code>EntityEntry ee = new EntityEntry(); //NOT
  _entityEntryMock = new Mock&lt;EntityEntry&gt;(); //NOT
  </code></pre>