mf.addCatch(RuntimeException.class, "throw new java.io.IOException($e.getMessage());");
Class targetClass = cf.createClass();
FailService fs = (FailService) targetClass.newInstance();
try
{
fs.fail();
unreachable();
}
catch (IOException ex)
{
assertEquals("Ouch!", ex.getMessage());