SequenceHandlingToggle implements ApplicationListener<ContextRefreshedEvent> { public void switchOn() { sequenceRequestHandlingProcessor.setEnabled(true); }  void switchOn(); void switchOff(); boolean isOn(); @Override void onApplicationEvent(final ContextRefreshedEvent event);  }
@Test public void testSwitchOnShouldEnableSequenceHandling() { underTest.switchOn(); verify(sequenceRequestHandlingProcessor).setEnabled(true); }