* At this point we check whether unsetEntityContext() gets called.
* @throws Exception
*/
public void testUnsetEntityContextCalled() throws Exception
{
UnsetEntityContextHome home = (UnsetEntityContextHome)super.getInitialContext().lookup("UnsetEntityContext");
// after this call the counter should be 1
home.clearUnsetEntityContextCallCounter();
// after this call the counter should be 2
assertEquals("UnsetEntityContextCallCount", 1, home.getUnsetEntityContextCallCounter());
// after this call the counter should be 3
assertEquals("UnsetEntityContextCallCount", 2, home.getUnsetEntityContextCallCounter());
// after this call the counter should be 4
assertEquals("UnsetEntityContextCallCount", 3, home.getUnsetEntityContextCallCounter());
}