@Test
public void shouldRecordEventConsumerError() {

  final SequenceEvent event = SequenceEvent.create(
      Event.triggerExecution(TestData.WORKFLOW_INSTANCE, Trigger.natural(), TriggerParameters.zero()), 0L, 0L);
  when(registry.meter(EVENT_CONSUMER_ERROR_RATE.tagged("event-type", "triggerExecution"))).thenReturn(meter);
  stats.recordEventConsumerError(event);
  verify(meter).mark();
}