pub fn validate_revert(
    capture: Capture<(ExitReason, Vec<u8>), Infallible>,
    expected_data: &[u8]
)