getsAutoFlushMode();
getsFlushMode();
    public void testStatefulReentrantCallThrows() throws Throwable    {        Method method = RenderingEngine.class.getMethod("getDefaultZ");        newStatefulInvocation( method, new Stub() {        	public Object invoke(Invocation dummy) throws Throwable {        		handler.invoke( invocation );        		return null;        	}        	public StringBuffer describeTo(StringBuffer buffer) {        		return buffer.append(" reentrant call ");        	}        });        opensSession();        setsFlushMode();        beginsTransaction(2);        checksSessionIsOpen();        getsFactoryFromSession();        getsAutoFlushMode();        // invocation here        checksSessionIsConnected();        disconnectsSession();        closesSession();        handler.invoke( invocation );    }