ToolModel<CeylonCompileTool> model = pluginLoader.loadToolModel("compile");
Assert.assertNotNull(model);
CeylonCompileTool tool = pluginFactory.bindArguments(model,
options("--src=test/src", "com.redhat.ceylon.tools.test.stackoverflow"));
try{
tool.run();
Assert.fail("Tool should have thrown an exception");
}catch(SystemErrorException x){
Assert.assertEquals("java.lang.StackOverflowError", x.getMessage());
}
}