@Test
public void removesEverrestComponentsFromServletContextAttributeWhenServletContextDestroyed() {

    EverrestInitializedListener everrestInitializedListener = new EverrestInitializedListener();
    ServletContextEvent servletContextEvent = new ServletContextEvent(servletContext);
    everrestInitializedListener.contextDestroyed(servletContextEvent);
    verify(servletContext).removeAttribute(eq(EverrestProcessor.class.getName()));
    verify(servletContext).removeAttribute(eq(EverrestConfiguration.class.getName()));
    verify(servletContext).removeAttribute(eq(Application.class.getName()));
    verify(servletContext).removeAttribute(eq(ApplicationProviderBinder.class.getName()));
    verify(servletContext).removeAttribute(eq(ResourceBinder.class.getName()));
    verify(servletContext).removeAttribute(eq(DependencySupplier.class.getName()));
}