@Test
public void whenNextActivationIsSetToNullBeforeContext() {

  listener.beforeProcessing(context);
  assertEquals(1, metricRegistry.getHistograms().get("foobarName.0.myWorkflow.my-state.retries").getCount());
  assertNotNull(metricRegistry.getTimers().get("foobarName.0.myWorkflow.my-state.execution-time"));
  assertNull(metricRegistry.getHistograms().get("foobarName.0.startup-delay"));
}