### Question:
PostConstructApplicationSpringFacesEvent extends SpringFacesApplicationEvent { @Override public Application getSource() { return (Application) super.getSource(); } PostConstructApplicationSpringFacesEvent(Application source); @Override Application getSource();  }### Answer:
@Test public void shouldCreateWithSource() throws Exception { Application application = mock(Application.class); PostConstructApplicationSpringFacesEvent e = new PostConstructApplicationSpringFacesEvent(application); assertThat(e.getSource(), is(application)); }