---
schema_version: "1"
id: 8db49f4e5e82abb57eb404f486bfa23b0e1f04e4fb4b9c8031f4fa29f78d272a
title: MUnit Assert Equals Processor
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/munit/latest/assertion-equals-processor.md
canonical_url: https://docs.mulesoft.com/munit/latest/assertion-equals-processor
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 4a9dd72f9e1f02cabef33ee69440174cb101606828e8db4b880fbcf5af2ded70
description: MuleSoft Documentation Site
release: "3.7"
latest: true
---
---
product: MUnit
version: 3.7
is-latest-version: true
---

# MUnit Assert Equals 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 MUnit Assert Equals processor validates that two values are equal during a MUnit test. Use it to
check the state of a Mule Event’s payload or variables after production code runs.

For example, to assert that a payload is equal to a certain value, you can configure the
Assert-Equals processor the following way:

```xml
<munit-tools:assert-equals
  actual="#[payload]"
  expected="#[2]"
  message="The payload should be 2"/>
```

If the `expected` attribute is a String, you can specify the literal value without requiring an
expression.

```xml
<munit-tools:assert-equals
  actual="#[payload]"
  expected="Example"
  message="The payload should be 'Example'"/>
```

If this assertion fails, the processor throws a `MUNIT-TOOLS:ASSERTION_ERROR`.
