StopTimerAction extends AbstractTestAction { public String getTimerId() { return timerId; } StopTimerAction(Builder builder); String getTimerId(); @Override void doExecute(TestContext context);  }
@Test public void shouldStopSpecificTimer() { String timerId = "timer#1"; StopTimer timer = createMockTimer(context, timerId); StopTimerAction stopTimer = new StopTimerAction.Builder() .id(timerId) .build(); Assert.assertEquals(stopTimer.getTimerId(), timerId); stopTimer.execute(context); verify(timer).stopTimer(); }