processEngineConfiguration.getCommandExecutorTxRequired().execute(new Command<Object>() {
public Object execute(CommandContext commandContext) {
CommandExecutor commandExecutor = Context.getProcessEngineConfiguration().getCommandExecutorTxRequired();
try {
commandExecutor.execute(innerCommand);
fail("exception expected to pop up during execution of inner command");
} catch (IdentifiableRuntimeException e) {
// happy path
assertNull("the exception should not have been propagated to this command's context",
Context.getCommandInvocationContext().getThrowable());