@Test
public void beforeContext() {

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