MyStateful bean = container.constructProxy(MyStateful.class);
tm.begin();
try
{
bean.throwAppRuntimeException();
fail("Should have thrown AppRuntimeException");
}
catch(AppRuntimeException e)
{
assertEquals("Transaction should have been marked for rollback", Status.STATUS_MARKED_ROLLBACK, tm.getStatus());