@Test
public void startsEverrestProcessorWhenServletContextInitialized() throws Exception {

    EverrestProcessor everrestProcessor = mock(EverrestProcessor.class);
    EverrestServletContextInitializer initializer = mock(EverrestServletContextInitializer.class);
    when(initializer.createEverrestProcessor()).thenReturn(everrestProcessor);
    EverrestInitializedListener everrestInitializedListener = new EverrestInitializedListener();
    everrestInitializedListener.initializeEverrestComponents(initializer, servletContext);
    verify(everrestProcessor).start();
}