getsAutoFlushMode();
getsFlushMode();
    public void testClosedOnException() throws Throwable    {        prepareThreadWithSession();        try {        newStatefulReadInvocationThrows();        checksSessionIsOpen();        checksSessionIsConnected();        getsFactoryFromSession();        getsAutoFlushMode();        // here it throws        disconnectsSession();        closesSession();        handler.invoke( invocation );        fail("Should have thrown.");        } catch (Exception e)        {}    }