@Test
    @ConfiguredWithCode("ConfigureLabels.yml")
    void shouldImportLabelAtoms(JenkinsConfiguredWithCodeRule j) {
        LabelAtom label1 = Jenkins.get().getLabelAtom("label1");
        assertNotNull(label1);
        assertThat(label1.getProperties(), hasSize(2));
        assertEquals(2, label1.getProperties().get(TestProperty.class).value);
        assertEquals(4, label1.getProperties().get(AnotherTestProperty.class).otherProperty);

        LabelAtom label2 = Jenkins.get().getLabelAtom("label2");
        assertNotNull(label2);
        assertThat(label2.getProperties(), hasSize(1));
        assertEquals(3, label2.getProperties().get(TestProperty.class).value);
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
test-harness/src/test/java/io/jenkins/plugins/casc/core/JenkinsConfiguratorTest.java