@Test
public void shouldFailTriggerIfGetLatestCounterFails() throws Exception {

  var cause = new IOException();
  when(storage.getLatestStoredCounter(any())).thenThrow(cause);
  exception.expectCause(is(cause));
  stateManager.trigger(INSTANCE, TRIGGER1, PARAMETERS);
}