---
schema_version: "1"
id: aa61d3fd8005b1b7170e4f39f8f21d2710811f23feffd90b411704f6b2b26c61
title: Verify Event Processor
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/munit/2.3/verify-event-processor.md
canonical_url: https://docs.mulesoft.com/munit/2.3/verify-event-processor
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 8420fd0623feb1801998848a0f07207cb626cb6ca3655977409a42451b9f276f
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: MUnit
version: 2.3
keywords: munit, testing, unit testing
---

# Verify Event Processor

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

The Verify Event processor allows you to verify if a processor was called.

For example, you can validate if a specific processor has been called with a particular set of
attributes a specific number of times.

When defining a verification, you are telling MUnit to fail a test if the verification is not
successful.

You can define verifications over any processor, even if you haven’t created a mock for it.

```xml
<munit-tools:verify-call processor="http:request" atLeast="1">
   <munit-tools:with-attributes>
       <munit-tools:with-attribute attributeName="method" whereValue="#['GET']" />
   </munit-tools:with-attributes>
</munit-tools:verify-call>
```

<table><colgroup><col> <col></colgroup><thead><tr><th>Attribute Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>eventProcessor</code></p></td><td><p>Describes which event processor you want to mock. The description takes the form <code>{name-space}:{event-processor-name}</code>. It supports regular expressions.</p></td></tr><tr><td><p><code>times</code></p></td><td><p><strong>(Default = 1.)</strong> Defines the verification as successful if the event processor was called <em>N</em> and only <em>N</em> number of times.</p></td></tr><tr><td><p><code>atLeast</code></p></td><td><p>Defines the verification as successful if the event processor was called a minimum of <em>N</em> number of times.</p></td></tr><tr><td><p><code>atMost</code></p></td><td><p>Defines the verification as successful if the event processor was called maximum of <em>N</em> number of times.</p></td></tr></tbody></table>

The attributes `times`, `atLeast`, `atMost`, are mutually exclusive.

The `eventProcessor` attribute accepts regular expressions. For example, you can create the same
verification as `.*:request` to verify for an event processor named request, disregarding which
namespace the event processor belongs to. The regular expression language is the same as Java.

## See Also

- [Assert That Event Processor](https://docs.mulesoft.com/munit/2.3/assertion-event-processor)

- [Fail Event Processor](https://docs.mulesoft.com/munit/2.3/fail-event-processor)

- [Run Custom Event Processor](https://docs.mulesoft.com/munit/2.3/run-custom-event-processor)

- [Set Event Processor](https://docs.mulesoft.com/munit/2.3/set-event-processor)

- [Mock When Event Processor](https://docs.mulesoft.com/munit/2.3/mock-event-processor)
