@Test
public void testIgnoredEvents() throws Exception {

    MockEventAdmin eventAdmin = new MockEventAdmin();
    DecanterEventNotifier notifier = new DecanterEventNotifier();
    notifier.setEventAdmin(eventAdmin);
    notifier.setIgnoreCamelContextEvents(true);
    DefaultCamelContext camelContext = createCamelContext(notifier);
    ProducerTemplate producerTemplate = camelContext.createProducerTemplate();
    producerTemplate.sendBodyAndHeader("direct:start", "TEST", "foo", "bar");
    Assert.assertEquals(8, eventAdmin.getPostEvents().size());
}