* that this SessionBroker is not capable of creating "client" Sessions. We need to handle
* these differently depending on how the SessionFactory is being used. If we are creating a
* plain Session than we can return the original SessionBroker.
*/
public void testSessionBrokerThrowingValidationException() {
SessionBroker broker = new MockSingleSessionBroker();
SessionBrokerSessionFactory factory = new SessionBrokerSessionFactory(broker);
assertEquals(factory.createSession(), broker);
try {
factory.createManagedClientSession();