@Test
    @ConfiguredWithCode(value = "SelfConfiguratorRestrictedTest.yml", expected = ConfiguratorException.class)
    void self_configure_restricted(JenkinsConfiguredWithCodeRule j) {
        // expected to throw Configurator Exception
        assertThat(j.jenkins.getRawBuildsDir(), is(not("/tmp")));
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/SelfConfiguratorTest.java