VaadinConnectAccessChecker { public void enableCsrf(boolean xsrfProtectionEnabled) { this.xsrfProtectionEnabled = xsrfProtectionEnabled; }  String check(Method method, HttpServletRequest request); AnnotatedElement getSecurityTarget(Method method); void enableCsrf(boolean xsrfProtectionEnabled);  }
@Test public void should_pass_When_csrf_disabled() throws Exception { class Test { public void test() { } } createNullTokenContextInHeaderRequest(); checker.enableCsrf(false); shouldPass(Test.class); }