@Test
    @ConfiguredWithCode("SeedJobTest_withSecurityConfig.yml")
    @Envs(@Env(name = "SEED_JOB_FOLDER_FILE_PATH", value = "."))
    public void configure_seed_job_with_security_config() throws Exception {
        final Jenkins jenkins = Jenkins.get();

        final GlobalJobDslSecurityConfiguration dslSecurity =
                GlobalConfiguration.all().get(GlobalJobDslSecurityConfiguration.class);
        assertNotNull(dslSecurity);
        assertThat("ScriptSecurity", dslSecurity.isUseScriptSecurity(), is(false));

        FreeStyleProject seedJobWithSecurityConfig = (FreeStyleProject) jenkins.getItem("seedJobWithSecurityConfig");
        assertNotNull(seedJobWithSecurityConfig);

        assertTrue(seedJobWithSecurityConfig.isInQueue());
        FreeStyleBuild freeStyleBuild = j.buildAndAssertSuccess(seedJobWithSecurityConfig);
        j.assertLogContains("Processing DSL script testJob2.groovy", freeStyleBuild);
        j.assertLogContains("Added items:", freeStyleBuild);
        j.assertLogContains("GeneratedJob{name='testJob2'}", freeStyleBuild);
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
integrations/src/test/java/io/jenkins/plugins/casc/SeedJobTest.java