anchor.diff:  *{component-header}*
   
   Testing of distributed and asynchronous processing is
  -notoriously difficult. The xref:mock-component.adoc[Mock], xref:mock-component.adoc[Test]
  +notoriously difficult. The xref:mock-component.adoc[Mock], xref:test.adoc[Test]
   and xref:dataset-component.adoc[DataSet] endpoints work great with the
   Camel Testing Framework to simplify your unit and
   integration testing using
  
positive.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/current/org/apache/camel/component/mock/MockEndpoint.html#expectedBodiesReceived-java.lang.Object...-[expectedBodiesReceived(...)]
  |To define the expected bodies that should be received (in order).
  
  |https://www.javadoc.io/doc/org.apache.camel/camel-mock/current/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
  
negative.code: * Messages arrive match some kind of Predicate such
  as that specific headers have certain values, or that parts of the
  messages match some predicate, such as by evaluating an
  xref:languages:xpath-language.adoc[XPath] or xref:languages:xquery-language.adoc[XQuery]
  Expression.
  
  [NOTE]
  