// to verify the behavior of our route later.
ActivitiComponent activitiComponent = mock(ActivitiComponent.class);
ActivitiEndpoint activitiEndpoint = mock(ActivitiEndpoint.class);
when(activitiEndpoint.getEndpointKey()).thenReturn("activiti:open-account");
when(activitiEndpoint.getEndpointUri()).thenReturn("activiti:open-account");
when(activitiComponent.createEndpoint(anyString())).thenReturn(activitiEndpoint);
when(activitiComponent.getCamelContext()).thenReturn(context);
when(activitiEndpoint.getCamelContext()).thenReturn(context);
activitiProducer = mock(ActivitiProducer.class);
// This is the slightly tricky part, we need some kind of feedback when the
// activiti-camel component's producer is invoked. This will let us know that