@Test
public void checked_exception_will_commit_transaction() throws Exception
{
Performer delegate = newMock(Performer.class);
HibernateSessionManager manager = newMock(HibernateSessionManager.class);
HibernateTransactionDecorator decorator = newHibernateSessionManagerDecorator(manager);
SQLException se = new SQLException("Checked.");
delegate.perform();
TestBase.setThrowable(se);
manager.commit();
replay();
Performer interceptor = decorator.build(Performer.class, delegate, "foo.Bar");
try
{
interceptor.perform();
TestBase.unreachable();