@Test
    @Issue("SECURITY-1458")
    void shouldDiscoverSecretsBasedOnTheAttributeType(JenkinsRule j) {
        DataBoundConfigurator c =
                new DataBoundConfigurator<>(AttributeTest.SecretRenamedFieldFithSecretConstructor.class);
        Set<Attribute> attributes = c.describe();
        assertThat(attributes.size(), equalTo(1));
        Attribute attr = attributes.iterator().next();
        assertTrue(attr.isSecret(null));
    }
Contains tests for particular export cases.
plugin/src/test/java/io/jenkins/plugins/casc/yaml/YamlExportTest.java