### Question:
SecurityUtil { public static boolean isCSRFFilterEnabled() { return Boolean.valueOf(StartupProperties.get().getProperty( "falcon.security.csrf.enabled", "false")); } private  SecurityUtil(); static String getAuthenticationType(); static boolean isSecurityEnabled(); static String getLocalHostName(); static boolean isAuthorizationEnabled(); static boolean isCSRFFilterEnabled(); static AuthorizationProvider getAuthorizationProvider(); static void tryProxy(Entity entity, final String doAsUser); static final String AUTHENTICATION_TYPE; static final String NN_PRINCIPAL; static final String RM_PRINCIPAL; static final String HIVE_METASTORE_KERBEROS_PRINCIPAL; static final String METASTORE_USE_THRIFT_SASL; static final String METASTORE_PRINCIPAL; }### Answer:
@Test public void testIsCSRFFilterEnabledByDefault() throws Exception { Assert.assertFalse(SecurityUtil.isCSRFFilterEnabled()); }
@Test public void testIsCSRFFilterEnabled() throws Exception { try { StartupProperties.get().setProperty("falcon.security.csrf.enabled", "true"); Assert.assertTrue(SecurityUtil.isCSRFFilterEnabled()); } finally { StartupProperties.get().setProperty("falcon.security.csrf.enabled", "false"); } }