@Test
public void testCreateTilesApplicationContext() {

    ApplicationContext preliminaryContext = createMock(ApplicationContext.class);
    ServletContext servletContext = createMock(ServletContext.class);
    expect(preliminaryContext.getContext()).andReturn(servletContext);
    replay(preliminaryContext, servletContext);
    assertTrue(initializer
            .createTilesApplicationContext(preliminaryContext) instanceof WildcardServletApplicationContext);
    verify(preliminaryContext, servletContext);
}