RobotDryRunAlwaysContinueEventListener extends RobotDefaultAgentEventListener { @Override public void handleShouldContinue(final ShouldContinueEvent event) { try { event.responder().respond(new ContinueExecution()); } catch (final ResponseException e) { throw new RobotAgentEventsListenerException("Unable to send response to client", e); } }  @Override void handleShouldContinue(final ShouldContinueEvent event);  }
@Test public void shouldContinueEventIsHandled() throws Exception { final RobotDryRunAlwaysContinueEventListener listener = new RobotDryRunAlwaysContinueEventListener(); final ShouldContinueEventResponder responder = mock(ShouldContinueEventResponder.class); final ShouldContinueEvent event = new ShouldContinueEvent(responder, null); listener.handleShouldContinue(event); verify(responder).respond(isA(ContinueExecution.class)); verifyNoMoreInteractions(responder); }