failOnError();
}
public void testCrazyDelegate() {
try {
CrazyDelegate instance = new CrazyDelegate();
// This should fail at CrazyDomainTypeHandlerFactoryImpl.getProxyClass()
// It's a bit of a cheat since it relies on the internal implementation
// of SessionFactoryImpl.getDomainTypeHandler
session.makePersistent(instance);
error("Failed to catch UnsupportedOperationException");