@Test
public void createsApplicationIsConfiguredInServletContext() {

    when(servletContext.getInitParameter("javax.ws.rs.Application")).thenReturn(SomeApplication.class.getName());
    EverrestServletContextInitializer everrestServletContextInitializer = new EverrestServletContextInitializer(servletContext);
    Application application = everrestServletContextInitializer.getApplication();
    assertEquals(SomeApplication.class, application.getClass());
}