---
schema_version: "1"
id: a4a3f6e01af32089d1f7b81448282798f8a8897c03bbf37c1c70911fa370ca8e
title: Fail Event Processor
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/munit/2.3/fail-event-processor.md
canonical_url: https://docs.mulesoft.com/munit/2.3/fail-event-processor
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 6294b14d6ad3521da7171bbd102f98deb24cdc6ff9dea7cda79237c45702d5e9
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: MUnit
version: 2.3
---

# Fail Event Processor

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

The Fail Event Processor allows you to fail your test on purpose. This is useful to validate that a
test should fail if that point is reached.

```xml
<munit-tools:fail
  message="This should fail"/>
```

The message field is optional and defines the error message to print when the assertion fails. The
processor throws a `java.lang.AssertionError`.
