filter.afterPropertiesSet();
final Switch filterCallSwitch = new Switch();
FilterChain filterChain = new FilterChain() {
public void doFilter(ServletRequest req, ServletResponse res) {
filterCallSwitch.turnOn();
assertFalse(ValidationContextUtils.tokensSupportedByCurrentContext(new String[] { "ctx1", "ctx2" }));
assertTrue(DefaultValidationContext.class.isInstance(ValidationContextHolder.getValidationContext()));
DefaultValidationContext context = (DefaultValidationContext)ValidationContextHolder.getValidationContext();
assertEquals(0, context.getTokens().length);
}