@Test
public void scansForJaxRsComponentsAndCreatesApplication() throws Exception {

    when(servletContext.getInitParameter("org.everrest.scan.components")).thenReturn("true");
    EverrestServletContextInitializer everrestServletContextInitializer = new EverrestServletContextInitializer(servletContext);
    Application application = everrestServletContextInitializer.getApplication();
    assertEquals(scannedClasses, application.getClasses());
}