---
schema_version: "1"
id: 2298ab3d5330c6fd31f5b956fa71954f78355d194a6c9b06877d8a82142106fd
title: Assert That Event Processor
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/munit/3.6/assertion-event-processor.md
canonical_url: https://docs.mulesoft.com/munit/3.6/assertion-event-processor
source_site: docs.mulesoft.com
content_type: documentation
content_hash: cb559741b20e3ee2aac23c3ecc367e4ac28d176884063cfae3a308e1d69cc428
description: MuleSoft Documentation Site
release: "3.6"
latest: false
---
---
product: MUnit
version: 3.6
keywords: mule, esb, tests, qa, quality assurance, verify, functional testing, unit testing, stress testing
---

# Assert That Event Processor

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

![logo acb active](/mulesoft/current/en-us/_/img/icons/anypoint-code-builder.svg "Anypoint Code Builder")Anypoint Code
Builder

![logo studio active](/mulesoft/current/en-us/_/img/icons/studio.svg "Anypoint Studio")Anypoint Studio

The Assert That event processor allows you to run assertions to validate the state of a Mule event’s
content. You can use the Assert That processor to validate the Mule event after the production code
runs.

The Assert That processor uses a set of DataWeave functions called `MUnit matchers` to define the
assertion conditions for any value in an expression.

For example, to assert that a payload is equal to a certain value, configure the Assert That
processor using the `equalTo()` matcher.

```xml
<munit-tools:assert-that
  expression="#[payload]"
  is="#[MunitTools::equalTo('example')]"
  message="The payload should be ‘example’"/>
```

Or you can also check if the payload is null using the `nullValue()` matcher.

```xml
<munit-tools:assert-that
  expression="#[payload]"
  is="#[MunitTools::nullValue()]"
  message="The payload should be null"/>
```

See [MUnit Matchers](https://docs.mulesoft.com/munit/3.6/munit-matchers) for more information.

If these assertion fails, the processor throws a `java.lang.AssertionError`.

## See Also

- [MUnit Matchers](https://docs.mulesoft.com/munit/3.6/munit-matchers)
