@Test
public void createsEverrestConfigurationBasedOnInitParamsFromServletContext() {

    Map<String, String> initParams = new HashMap<>();
    initParams.put("org.everrest.http.method.override", "true");
    initParams.put("org.everrest.security", "true");
    initParams.put("org.everrest.asynchronous", "true");
    initParams.put("org.everrest.asynchronous.service.path", "/xxx");
    initParams.put("org.everrest.asynchronous.pool.size", "100");
    initParams.put("org.everrest.asynchronous.queue.size", "100");
    initParams.put("org.everrest.asynchronous.job.timeout", "60");
    initParams.put("org.everrest.core.impl.method.MethodInvokerDecoratorFactory", "SomeDecorator");
    initParams.put("org.everrest.normalize.uri", "true");
    configureInitParamsInServletContext(initParams);
    EverrestServletContextInitializer everrestServletContextInitializer = new EverrestServletContextInitializer(servletContext);
    EverrestConfiguration configuration = everrestServletContextInitializer.createConfiguration();
    assertEquals(initParams, configuration.getAllProperties());
}