fn assert_reverted(execution_result: &BatchTransactionExecutionResult) {
    let result = &execution_result.tx_result.result;
    assert_matches!(result, ExecutionResult::Revert { .. });
}
Ensures that the transaction was executed successfully but reverted by the VM.
core/node/state_keeper/src/executor/tests/mod.rs