@Test
    @Issue("SECURITY-1458")
    void shouldNotExportValuesWithSecretFields(JenkinsRule j) throws Exception {
        DataBoundConfigurator<DataBoundSecretField> c = new DataBoundConfigurator<>(DataBoundSecretField.class);
        String res = export(c, new DataBoundSecretField("test"));
        assertThat(res, not(containsString("test")));
    }
Contains tests for particular export cases.
plugin/src/test/java/io/jenkins/plugins/casc/yaml/ExportTest.java