title: Apache Camel mock endpoint
body: <p>I recently started to investigate Apache Camel and I have one issue.
  I start writing some test for my routes, and there are a lot of examples, where "to" part of route is written as</p>
  
  <pre><code>    &lt;route id="person-add-route"&gt;
          &lt;from uri="direct:start"/&gt;
          &lt;to uri="mock:result"/&gt;
      &lt;/route&gt;
  </code></pre>
  
  <p>So, I wrote a test, where I am exepcting to have mock:result as last endproint.</p>
  
  <pre><code>@Test
  @DirtiesContext
  public void testCamel() throws Exception {
      // Given
      Object body = "body";
      int messageCount = 1;
      MockEndpoint endpoint = getMockEndpoint("mock:result");
  
      // When
      template.sendBody("direct:start", body);
  
      // Then
      endpoint.expectedMessageCount(messageCount);
      endpoint.assertIsSatisfied();
  }
  </code></pre>
  
  <p>Here is the questions: Is this important to write <strong>mock:result</strong> if I want to test my route?? </p>