def METHOD_NAME(payment, response):
    """Create a payment refund of a payment."""
    response.post(f"https://api.mollie.com/v2/payments/{PAYMENT_ID}/refunds", "refund_single")
    data = {"amount": {"value": "5.95", "currency": "EUR"}}
    refund = payment.refunds.create(data)
    assert isinstance(refund, Refund)
    assert refund.id == REFUND_ID