### Question:
SpringFacesIntegration extends WebApplicationObjectSupport implements
		ApplicationListener<ContextRefreshedEvent> { public static boolean isInstalled(ServletContext servletContext) { Assert.notNull(servletContext, "ServletContext must not be null"); return isInstalled(servletContext.getAttribute(ATTRIBUTE)); }  void onApplicationEvent(ContextRefreshedEvent event); static boolean isInstalled(ServletContext servletContext); static boolean isInstalled(ExternalContext externalContext); static Date getLastRefreshedDate(ServletContext servletContext); static Date getLastRefreshedDate(ExternalContext externalContext); static SpringFacesIntegration getCurrentInstance(ServletContext servletContext); static SpringFacesIntegration getCurrentInstance(ExternalContext externalContext); static void postConstructApplicationEvent(ExternalContext externalContext, Application application);  }### Answer:
@Test public void shouldNotBeInstalledUsing() throws Exception { assertThat(SpringFacesIntegration.isInstalled(this.servletContext), is(false)); }
@Test public void shouldNotBeInstalledUsingExternalContext() throws Exception { ExternalContext externalContext = mock(ExternalContext.class); assertThat(SpringFacesIntegration.isInstalled(externalContext), is(false)); }
@Test public void shouldBeInstalledUsing() throws Exception { createSpringFacesIntegration(); assertThat(SpringFacesIntegration.isInstalled(this.servletContext), is(true)); }
@Test public void shouldBeInstalledUsingExternalContext() throws Exception { createSpringFacesIntegration(); assertThat(SpringFacesIntegration.isInstalled(this.externalContext), is(true)); }