@Test
    public void shouldExportEvenOnError() throws Exception {
        Jenkins j = Jenkins.get();
        j.setCrumbIssuer(new BrokenCrumbIssuer("bar"));
        final ByteArrayOutputStream out = new ByteArrayOutputStream();
        ConfigurationAsCode.get().export(out);
        final String s = out.toString();
        assertThat(s, is(not(emptyOrNullString())));
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
test-harness/src/test/java/io/jenkins/plugins/casc/JenkinsConfigTest.java