def METHOD_NAME(
    text, masking_char, chars_to_mask, from_end, anonymized_text
):
    params = {
        "masking_char": masking_char,
        "chars_to_mask": chars_to_mask,
        "from_end": from_end,
    }
    actual_anonymized_text = Mask().operate(text=text, params=params)
    assert anonymized_text == actual_anonymized_text