ImplementingSession session = mock(ImplementingSession.class);
SessionBuilder options = mock(SessionBuilder.class);
Transaction tx = mock(Transaction.class);
given(sf.withOptions()).willReturn(options);
given(options.interceptor(entityInterceptor)).willReturn(options);
given(options.interceptor(entityInterceptor2)).willReturn(options);
given(options.openSession()).willReturn(session);
given(session.beginTransaction()).willReturn(tx);
given(session.isOpen()).willReturn(true);
given(session.isConnected()).willReturn(true);