def METHOD_NAME(
    role_member_change_type: ChangeTypeV1,
) -> None:
    """
    this testcase is similar to previous one, but detects removed contexts (e.g
    roles in this example) as the relevant context to extract.
    """
    role_member_change_type.changes[0].context.when = "removed"  # type: ignore
    existing_role = "/role/existing.yml"
    new_role = "/role/new.yml"
    user_change = build_bundle_datafile_change(
        path="/somepath.yml",
        schema="/access/user-1.yml",
        old_content={
            "roles": [{"$ref": existing_role}],
        },
        new_content={
            "roles": [{"$ref": new_role}],
        },
    )
    assert user_change
    ctp = change_type_to_processor(role_member_change_type)
    file_refs = ctp.find_context_file_refs(
        FileChange(
            file_ref=user_change.fileref,
            old=user_change.old,
            new=user_change.new,
        ),
        set(),
    )
    assert [o.context_file_ref for o in file_refs] == [
        FileRef(
            file_type=BundleFileType.DATAFILE,
            schema="/access/role-1.yml",
            path=existing_role,
        )
    ]