* Topmost AuraExecutionException is wrapped.
*/
public void testWrapExecutionExceptionInstanceOfAuraExecutionException() throws Exception {
Throwable start = new Exception("start");
Throwable child = new AuraUnhandledException("child", start);
Exception t = new AuraExecutionException(child, new Location("there", 0));
try {
AuraExceptionUtil.wrapExecutionException(t, new Location("here", 0));
fail("Expected the AuraRuntimeException to get rethrown");
} catch (AuraExecutionException e) {
assertEquals("Topmost AuraRuntimeException was not wrapped", t, e.getCause());
}
}