assertThat(analyser.transform(failure), sameInstance(failure));
}
private void notifyAnalyser(DefaultExceptionAnalyser analyser, final ScriptSource source) {
final Script script = context.mock(Script.class);
context.checking(new Expectations() {{
allowing(script).getScriptSource();
will(returnValue(source));
}});
analyser.beforeScript(script);