} catch (Throwable t) {
// Special handling for assumption exceptions. They contain unserializable data, so we create a new
// one that doesn't contain this extra info.
if (t instanceof InvocationTargetException) {
InvocationTargetException ite = (InvocationTargetException) t;
AssumptionViolatedException ave = JuObjectUtils.as(ite.getTargetException(), AssumptionViolatedException.class);
if (ave != null) {
throw new AssumptionViolatedException(ave.getMessage());
}
}
throw t;
}
txHandler.commit(); // Perform a commit after the execution of the test method