anchor.diff:  ----
   
   There are some examples of the Mock endpoint in use in the
  -https://github.com/apache/camel/tree/main/camel-core/src/test/java/org/apache/camel/processor/[`camel-core`
  +https://github.com/apache/camel/tree/main/core/camel-core/src/test/java/org/apache/camel/processor[`camel-core`
   processor tests].
   
   == Mocking existing endpoints
  
positive.code: *{component-header}*
  
  Testing of distributed and asynchronous processing is
  notoriously difficult. The xref:mock-component.adoc[Mock], xref:mock-component.adoc[Test]
  and xref:dataset-component.adoc[DataSet] endpoints work great with the
  Camel Testing Framework to simplify your unit and
  integration testing using
  
negative.code: [width="100%",cols="1m,1",options="header",]
  |===
  |Method |Description
  |https://www.javadoc.io/doc/org.apache.camel/camel-mock/current/org/apache/camel/component/mock/MockEndpoint.html#expectedMessageCount(int)[expectedMessageCount(int)]
  |To define the expected message count on the endpoint.
  
  |https://www.javadoc.io/doc/org.apache.camel/camel-mock/current/org/apache/camel/component/mock/MockEndpoint.html#expectedMinimumMessageCount(int)[expectedMinimumMessageCount(int)]
  |To define the minimum number of expected messages on the endpoint.
  
  |https://www.javadoc.io/doc/org.apache.camel/camel-mock/latest/org/apache/camel/component/mock/MockEndpoint.html#expectedBodiesReceived(java.util.List)[expectedBodiesReceived(...)]
  |To define the expected bodies that should be received (in order).
  
  |https://www.javadoc.io/doc/org.apache.camel/camel-mock/latest/org/apache/camel/component/mock/MockEndpoint.html#expectedHeaderReceived(java.lang.String,java.lang.Object)[expectedHeaderReceived(...)]
  |To define the expected header that should be received
  
  |https://www.javadoc.io/doc/org.apache.camel/camel-mock/current/org/apache/camel/component/mock/MockEndpoint.html#expectsAscending(org.apache.camel.Expression)[expectsAscending(Expression)]
  |To add an expectation that messages are received in order, using the
  given Expression to compare messages.
  
  |https://www.javadoc.io/doc/org.apache.camel/camel-mock/current/org/apache/camel/component/mock/MockEndpoint.html#expectsDescending(org.apache.camel.Expression)[expectsDescending(Expression)]
  |To add an expectation that messages are received in order, using the
  given Expression to compare messages.
  
  |https://www.javadoc.io/doc/org.apache.camel/camel-mock/current/org/apache/camel/component/mock/MockEndpoint.html#expectsNoDuplicates(org.apache.camel.Expression)[expectsNoDuplicates(Expression)]
  |To add an expectation that no duplicate messages are received; using an
  Expression to calculate a unique identifier for
  each message. This could be something like the `JMSMessageID` if using
  