TilesContextVariableResolverFactory extends
        ReadOnlyVariableResolverFactory { public boolean isTarget(String name) { return requestBeanInfo.getMappedDescriptors(Request.class).containsKey( name) || requestBeanInfo.getMappedDescriptors( ApplicationContext.class).containsKey(name); } TilesContextVariableResolverFactory(TilesRequestContextHolder requestHolder); boolean isTarget(String name); @Override VariableResolver createVariableResolver(String name);  }
@Test public void testIsTarget() { replay(request, applicationContext); assertTrue(factory.isTarget("header")); assertFalse(factory.isTarget("requestScope")); assertTrue(factory.isTarget("applicationScope")); assertFalse(factory.isTarget("blah")); }