@Test
public void usesDependencySupplierConfiguredInServletContext() {

    DependencySupplier configuredDependencySupplier = new DependencySupplierImpl();
    when(servletContext.getAttribute(DependencySupplier.class.getName())).thenReturn(configuredDependencySupplier);
    EverrestServletContextInitializer everrestServletContextInitializer = new EverrestServletContextInitializer(servletContext);
    DependencySupplier dependencySupplier = everrestServletContextInitializer.getDependencySupplier();
    assertSame(String.format("ServletContextDependencySupplier is expected to be created but %s found", dependencySupplier),
               dependencySupplier, configuredDependencySupplier);
}