ReadOnlyVariableResolverFactory extends
        BaseVariableResolverFactory { public boolean isResolveable(String name) { return isTarget(name) || isNextResolveable(name); } ReadOnlyVariableResolverFactory(TilesRequestContextHolder requestHolder); VariableResolver createVariable(String name, Object value); VariableResolver createVariable(String name, Object value,
            Class<?> type); boolean isResolveable(String name); @Override VariableResolver getVariableResolver(String name); abstract VariableResolver createVariableResolver(String name);  }
@Test public void testIsResolveable() { expect(factory.isTarget("whatever")).andReturn(true); replay(factory, request, applicationContext); assertTrue(factory.isResolveable("whatever")); verify(factory, request, applicationContext); }